提交 935ab850 编写于 作者: T Tom Saeger 提交者: Rafael J. Wysocki

ACPI: fix various typos in comments

Fix trivial ACPI driver comment typos.

s/notifcations/notifications/
s/Ajust/Adjust/
s/preform/perform/
s/atrributes/attributes/
s/Souce/Source/
s/Evalutes/Evaluates/
s/Evalutes/Evaluates/
s/specifiy/specify/
s/promixity/proximity/
s/presuambly/presumably/
s/Evalute/Evaluate/
s/specificed/specified/
s/rountine/routine/
s/previosuly/previously/

Change comment referencing pcc_send_cmd to send_pcc_cmd.
Signed-off-by: NTom Saeger <tom.saeger@oracle.com>
Reviewed-by: NRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 1e28eed1
...@@ -187,7 +187,7 @@ static int acpi_ac_battery_notify(struct notifier_block *nb, ...@@ -187,7 +187,7 @@ static int acpi_ac_battery_notify(struct notifier_block *nb,
/* /*
* On HP Pavilion dv6-6179er AC status notifications aren't triggered * On HP Pavilion dv6-6179er AC status notifications aren't triggered
* when adapter is plugged/unplugged. However, battery status * when adapter is plugged/unplugged. However, battery status
* notifcations are triggered when battery starts charging or * notifications are triggered when battery starts charging or
* discharging. Re-reading AC status triggers lost AC notifications, * discharging. Re-reading AC status triggers lost AC notifications,
* if AC status has changed. * if AC status has changed.
*/ */
......
...@@ -1392,7 +1392,7 @@ acpi_video_get_next_level(struct acpi_video_device *device, ...@@ -1392,7 +1392,7 @@ acpi_video_get_next_level(struct acpi_video_device *device,
break; break;
} }
} }
/* Ajust level_current to closest available level */ /* Adjust level_current to closest available level */
level_current += delta; level_current += delta;
for (i = ACPI_VIDEO_FIRST_LEVEL; i < device->brightness->count; i++) { for (i = ACPI_VIDEO_FIRST_LEVEL; i < device->brightness->count; i++) {
l = device->brightness->levels[i]; l = device->brightness->levels[i];
...@@ -1555,7 +1555,7 @@ acpi_video_bus_get_devices(struct acpi_video_bus *video, ...@@ -1555,7 +1555,7 @@ acpi_video_bus_get_devices(struct acpi_video_bus *video,
/* /*
* Win8 requires setting bit2 of _DOS to let firmware know it shouldn't * Win8 requires setting bit2 of _DOS to let firmware know it shouldn't
* preform any automatic brightness change on receiving a notification. * perform any automatic brightness change on receiving a notification.
*/ */
static int acpi_video_bus_start_devices(struct acpi_video_bus *video) static int acpi_video_bus_start_devices(struct acpi_video_bus *video)
{ {
......
...@@ -54,7 +54,7 @@ EXPORT_SYMBOL_GPL(erst_disable); ...@@ -54,7 +54,7 @@ EXPORT_SYMBOL_GPL(erst_disable);
static struct acpi_table_erst *erst_tab; static struct acpi_table_erst *erst_tab;
/* ERST Error Log Address Range atrributes */ /* ERST Error Log Address Range attributes */
#define ERST_RANGE_RESERVED 0x0001 #define ERST_RANGE_RESERVED 0x0001
#define ERST_RANGE_NVRAM 0x0002 #define ERST_RANGE_NVRAM 0x0002
#define ERST_RANGE_SLOW 0x0004 #define ERST_RANGE_SLOW 0x0004
......
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* APEI Hardware Error Souce Table support * APEI Hardware Error Source Table support
* *
* HEST describes error sources in detail; communicates operational * HEST describes error sources in detail; communicates operational
* parameters (i.e. severity levels, masking bits, and threshold * parameters (i.e. severity levels, masking bits, and threshold
......
...@@ -101,14 +101,14 @@ static DEFINE_PER_CPU(struct cpc_desc *, cpc_desc_ptr); ...@@ -101,14 +101,14 @@ static DEFINE_PER_CPU(struct cpc_desc *, cpc_desc_ptr);
(cpc)->cpc_entry.reg.space_id == \ (cpc)->cpc_entry.reg.space_id == \
ACPI_ADR_SPACE_PLATFORM_COMM) ACPI_ADR_SPACE_PLATFORM_COMM)
/* Evalutes to True if reg is a NULL register descriptor */ /* Evaluates to True if reg is a NULL register descriptor */
#define IS_NULL_REG(reg) ((reg)->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY && \ #define IS_NULL_REG(reg) ((reg)->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY && \
(reg)->address == 0 && \ (reg)->address == 0 && \
(reg)->bit_width == 0 && \ (reg)->bit_width == 0 && \
(reg)->bit_offset == 0 && \ (reg)->bit_offset == 0 && \
(reg)->access_width == 0) (reg)->access_width == 0)
/* Evalutes to True if an optional cpc field is supported */ /* Evaluates to True if an optional cpc field is supported */
#define CPC_SUPPORTED(cpc) ((cpc)->type == ACPI_TYPE_INTEGER ? \ #define CPC_SUPPORTED(cpc) ((cpc)->type == ACPI_TYPE_INTEGER ? \
!!(cpc)->cpc_entry.int_value : \ !!(cpc)->cpc_entry.int_value : \
!IS_NULL_REG(&(cpc)->cpc_entry.reg)) !IS_NULL_REG(&(cpc)->cpc_entry.reg))
...@@ -1330,7 +1330,7 @@ int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) ...@@ -1330,7 +1330,7 @@ int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls)
* is still with OSPM. * is still with OSPM.
* pending_pcc_write_cmd can also be cleared by a different CPU, if * pending_pcc_write_cmd can also be cleared by a different CPU, if
* there was a pcc CMD_READ waiting on down_write and it steals the lock * there was a pcc CMD_READ waiting on down_write and it steals the lock
* before the pcc CMD_WRITE is completed. pcc_send_cmd checks for this * before the pcc CMD_WRITE is completed. send_pcc_cmd checks for this
* case during a CMD_READ and if there are pending writes it delivers * case during a CMD_READ and if there are pending writes it delivers
* the write command before servicing the read command * the write command before servicing the read command
*/ */
...@@ -1355,8 +1355,8 @@ EXPORT_SYMBOL_GPL(cppc_set_perf); ...@@ -1355,8 +1355,8 @@ EXPORT_SYMBOL_GPL(cppc_set_perf);
/** /**
* cppc_get_transition_latency - returns frequency transition latency in ns * cppc_get_transition_latency - returns frequency transition latency in ns
* *
* ACPI CPPC does not explicitly specifiy how a platform can specify the * ACPI CPPC does not explicitly specify how a platform can specify the
* transition latency for perfromance change requests. The closest we have * transition latency for performance change requests. The closest we have
* is the timing information from the PCCT tables which provides the info * is the timing information from the PCCT tables which provides the info
* on the number and frequency of PCC commands the platform can handle. * on the number and frequency of PCC commands the platform can handle.
*/ */
......
...@@ -722,7 +722,7 @@ static void hmat_register_target(struct memory_target *target) ...@@ -722,7 +722,7 @@ static void hmat_register_target(struct memory_target *target)
/* /*
* Skip offline nodes. This can happen when memory * Skip offline nodes. This can happen when memory
* marked EFI_MEMORY_SP, "specific purpose", is applied * marked EFI_MEMORY_SP, "specific purpose", is applied
* to all the memory in a promixity domain leading to * to all the memory in a proximity domain leading to
* the node being marked offline / unplugged, or if * the node being marked offline / unplugged, or if
* memory-only "hotplug" node is offline. * memory-only "hotplug" node is offline.
*/ */
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
/* /*
* We have no docs for the CHT Crystal Cove PMIC. The Asus Zenfone-2 kernel * We have no docs for the CHT Crystal Cove PMIC. The Asus Zenfone-2 kernel
* code has 2 Crystal Cove regulator drivers, one calls the PMIC a "Crystal * code has 2 Crystal Cove regulator drivers, one calls the PMIC a "Crystal
* Cove Plus" PMIC and talks about Cherry Trail, so presuambly that one * Cove Plus" PMIC and talks about Cherry Trail, so presumably that one
* could be used to get register info for the regulators if we need to * could be used to get register info for the regulators if we need to
* implement regulator support in the future. * implement regulator support in the future.
* *
......
...@@ -935,7 +935,7 @@ int acpi_add_power_resource(acpi_handle handle) ...@@ -935,7 +935,7 @@ int acpi_add_power_resource(acpi_handle handle)
strcpy(acpi_device_class(device), ACPI_POWER_CLASS); strcpy(acpi_device_class(device), ACPI_POWER_CLASS);
device->power.state = ACPI_STATE_UNKNOWN; device->power.state = ACPI_STATE_UNKNOWN;
/* Evalute the object to get the system level and resource order. */ /* Evaluate the object to get the system level and resource order. */
status = acpi_evaluate_object(handle, NULL, NULL, &buffer); status = acpi_evaluate_object(handle, NULL, NULL, &buffer);
if (ACPI_FAILURE(status)) if (ACPI_FAILURE(status))
goto err; goto err;
......
...@@ -98,7 +98,7 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr) ...@@ -98,7 +98,7 @@ static int acpi_processor_get_platform_limit(struct acpi_processor *pr)
* acpi_processor_ppc_ost: Notify firmware the _PPC evaluation status * acpi_processor_ppc_ost: Notify firmware the _PPC evaluation status
* @handle: ACPI processor handle * @handle: ACPI processor handle
* @status: the status code of _PPC evaluation * @status: the status code of _PPC evaluation
* 0: success. OSPM is now using the performance state specificed. * 0: success. OSPM is now using the performance state specified.
* 1: failure. OSPM has not changed the number of P-states in use * 1: failure. OSPM has not changed the number of P-states in use
*/ */
static void acpi_processor_ppc_ost(acpi_handle handle, int status) static void acpi_processor_ppc_ost(acpi_handle handle, int status)
......
...@@ -596,7 +596,7 @@ static int __acpi_dev_get_resources(struct acpi_device *adev, ...@@ -596,7 +596,7 @@ static int __acpi_dev_get_resources(struct acpi_device *adev,
* @preproc_data: Pointer passed to the caller's preprocessing routine. * @preproc_data: Pointer passed to the caller's preprocessing routine.
* *
* Evaluate the _CRS method for the given device node and process its output by * Evaluate the _CRS method for the given device node and process its output by
* (1) executing the @preproc() rountine provided by the caller, passing the * (1) executing the @preproc() routine provided by the caller, passing the
* resource pointer and @preproc_data to it as arguments, for each ACPI resource * resource pointer and @preproc_data to it as arguments, for each ACPI resource
* returned and (2) converting all of the returned ACPI resources into struct * returned and (2) converting all of the returned ACPI resources into struct
* resource objects if possible. If the return value of @preproc() in step (1) * resource objects if possible. If the return value of @preproc() in step (1)
......
...@@ -561,7 +561,7 @@ static void acpi_scan_drop_device(acpi_handle handle, void *context) ...@@ -561,7 +561,7 @@ static void acpi_scan_drop_device(acpi_handle handle, void *context)
* prevents attempts to register device objects identical to those being * prevents attempts to register device objects identical to those being
* deleted from happening concurrently (such attempts result from * deleted from happening concurrently (such attempts result from
* hotplug events handled via the ACPI hotplug workqueue). It also will * hotplug events handled via the ACPI hotplug workqueue). It also will
* run after all of the work items submitted previosuly, which helps * run after all of the work items submitted previously, which helps
* those work items to ensure that they are not accessing stale device * those work items to ensure that they are not accessing stale device
* objects. * objects.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册