]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ACPI/ACPICA: Trivial: fix spelling mistakes and fix whitespace formatting
authorErik Schmauss <erik.schmauss@intel.com>
Fri, 15 Feb 2019 21:36:19 +0000 (13:36 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 24 Feb 2019 20:12:01 +0000 (21:12 +0100)
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
31 files changed:
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/acmacros.h
drivers/acpi/acpica/dbdisply.c
drivers/acpi/acpica/dbnames.c
drivers/acpi/acpica/dbobject.c
drivers/acpi/acpica/dswload2.c
drivers/acpi/acpica/evgpe.c
drivers/acpi/acpica/evregion.c
drivers/acpi/acpica/evxfgpe.c
drivers/acpi/acpica/exconvrt.c
drivers/acpi/acpica/exfield.c
drivers/acpi/acpica/exserial.c
drivers/acpi/acpica/exutils.c
drivers/acpi/acpica/nsload.c
drivers/acpi/acpica/nsutils.c
drivers/acpi/acpica/rsdumpinfo.c
drivers/acpi/acpica/rsirq.c
drivers/acpi/acpica/rsserial.c
drivers/acpi/acpica/tbfadt.c
drivers/acpi/acpica/tbxface.c
drivers/acpi/irq.c
drivers/acpi/pci_link.c
drivers/acpi/resource.c
drivers/gpio/gpiolib-acpi.c
drivers/platform/x86/sony-laptop.c
drivers/pnp/pnpacpi/rsparser.c
include/acpi/acconfig.h
include/acpi/acexcep.h
include/acpi/acrestyp.h
include/acpi/actbl1.h
include/acpi/actbl2.h

index 18ec6627d674c0ab6702bcd9d8ecda61e4e02821..a2dfbf6b004e219f5a47a8664a8825d61672c174 100644 (file)
@@ -802,7 +802,7 @@ struct acpi_comment_addr_node {
 
 /*
  * File node - used for "Include" operator file stack and
- * depdendency tree for the -ca option
+ * dependency tree for the -ca option
  */
 struct acpi_file_node {
        void *file;
index 99131cd4e389b49388a5f4a23c923ea71ce78c61..283614e82a2028db6dbf2705f3d5cfd1babc09ed 100644 (file)
 #define ACPI_IS_OCTAL_DIGIT(d)              (((char)(d) >= '0') && ((char)(d) <= '7'))
 
 /*
- * Macors used for the ASL-/ASL+ converter utility
+ * Macros used for the ASL-/ASL+ converter utility
  */
 #ifdef ACPI_ASL_COMPILER
 
index 9fcb8ec646813d3ad3e119fc805e3b53064cf0c5..30ab62b0fec875d195224bd6b02ac2d9886689a3 100644 (file)
@@ -237,7 +237,7 @@ void acpi_db_decode_and_display_object(char *target, char *output_type)
 
                default:
 
-                       /* Is not a recognizeable object */
+                       /* Is not a recognizable object */
 
                        acpi_os_printf
                            ("Not a known ACPI internal object, descriptor type %2.2X\n",
@@ -647,7 +647,7 @@ void acpi_db_display_object_type(char *object_arg)
  *
  * DESCRIPTION: Display the result of an AML opcode
  *
- * Note: Curently only displays the result object if we are single stepping.
+ * Note: Currently only displays the result object if we are single stepping.
  * However, this output may be useful in other contexts and could be enabled
  * to do so if needed.
  *
index 992bd7b92540d6afff1083164e0f0e237a2f2a08..004d34d9369bbcf6f91c84bce33214be1f23eb7f 100644 (file)
@@ -904,7 +904,7 @@ acpi_db_bus_walk(acpi_handle obj_handle,
  *
  * RETURN:      None
  *
- * DESCRIPTION: Display info about system busses.
+ * DESCRIPTION: Display info about system buses.
  *
  ******************************************************************************/
 
index a1c76bf211227d672e992982a11e3aa24dd8bbcf..d220168dca01a4fadf7df7380ccedc6a9a8cd41f 100644 (file)
@@ -243,7 +243,7 @@ acpi_db_display_internal_object(union acpi_operand_object *obj_desc,
                        acpi_os_printf("[%s] ",
                                       acpi_ut_get_reference_name(obj_desc));
 
-                       /* Decode the refererence */
+                       /* Decode the reference */
 
                        switch (obj_desc->reference.class) {
                        case ACPI_REFCLASS_LOCAL:
index 98cdc24c640f96aff31aec2bcd9807d223afb31d..935a8e2623e4bfd89b2afb747a9c9346ae699029 100644 (file)
@@ -24,7 +24,7 @@ ACPI_MODULE_NAME("dswload2")
  * FUNCTION:    acpi_ds_load2_begin_op
  *
  * PARAMETERS:  walk_state      - Current state of the parse tree walk
- *              out_op          - Wher to return op if a new one is created
+ *              out_op          - Where to return op if a new one is created
  *
  * RETURN:      Status
  *
index a5d435849d0d2688dfadf5e9cafdab5a29c15be3..62d3aa74277b4d03cb4bd1e7d5cee705864bd41b 100644 (file)
@@ -801,7 +801,7 @@ acpi_ev_gpe_dispatch(struct acpi_namespace_node *gpe_device,
                                                              dispatch.handler->
                                                              context);
 
-               /* If requested, clear (if level-triggered) and reenable the GPE */
+               /* If requested, clear (if level-triggered) and re-enable the GPE */
 
                if (return_value & ACPI_REENABLE_GPE) {
                        (void)acpi_ev_finish_gpe(gpe_event_info);
index b683b3ad6baa9e515689a963af644eb6f000c106..45dc797df05de208d9d00efb2bf32538fc7c8681 100644 (file)
@@ -250,7 +250,7 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj,
                /*
                 * For handlers other than the default (supplied) handlers, we must
                 * exit the interpreter because the handler *might* block -- we don't
-                * know what it will do, so we can't hold the lock on the intepreter.
+                * know what it will do, so we can't hold the lock on the interpreter.
                 */
                acpi_ex_exit_interpreter();
        }
index fb1d215dd2885c9d970dacbeed6e9baec2517912..30a083902f522115f23642233805a3c7fb11a812 100644 (file)
@@ -669,9 +669,9 @@ ACPI_EXPORT_SYMBOL(acpi_dispatch_gpe)
  *
  * RETURN:      Status
  *
- * DESCRIPTION: Clear and conditionally reenable a GPE. This completes the GPE
+ * DESCRIPTION: Clear and conditionally re-enable a GPE. This completes the GPE
  *              processing. Intended for use by asynchronous host-installed
- *              GPE handlers. The GPE is only reenabled if the enable_for_run bit
+ *              GPE handlers. The GPE is only re-enabled if the enable_for_run bit
  *              is set in the GPE info.
  *
  ******************************************************************************/
index f5675f1b19282cbba8493c5180a4a3f8a2206fa3..ca2966bacb50eeb1eeecbf9c2ee5aea6b137320d 100644 (file)
@@ -520,7 +520,7 @@ acpi_ex_convert_to_string(union acpi_operand_object * obj_desc,
                for (i = 0; i < obj_desc->buffer.length; i++) {
                        if (base == 16) {
 
-                               /* Emit 0x prefix for explict/implicit hex conversion */
+                               /* Emit 0x prefix for explicit/implicit hex conversion */
 
                                *new_buf++ = '0';
                                *new_buf++ = 'x';
index 3760f96b19f9e4a13df3f6efa61eaae7b201798c..d3d2dbfba680c18d533caf861eb26a910dbc0db1 100644 (file)
@@ -41,7 +41,7 @@ const u8 acpi_protocol_lengths[] = {
        0xFF                    /* F - ATTRIB_RAW_PROCESS_BYTES */
 };
 
-#define PCC_MASTER_SUBSPACE    3
+#define PCC_MASTER_SUBSPACE     3
 
 /*
  * The following macros determine a given offset is a COMD field.
@@ -49,8 +49,8 @@ const u8 acpi_protocol_lengths[] = {
  * 2-byte COMD field at offset 4 and master subspaces (type 3) contains a 4-byte
  * COMD field starting at offset 12.
  */
-#define GENERIC_SUBSPACE_COMMAND(a)    (4 == a || a == 5)
-#define MASTER_SUBSPACE_COMMAND(a)     (12 <= a && a <= 15)
+#define GENERIC_SUBSPACE_COMMAND(a)     (4 == a || a == 5)
+#define MASTER_SUBSPACE_COMMAND(a)      (12 <= a && a <= 15)
 
 /*******************************************************************************
  *
@@ -319,6 +319,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,
                memcpy(obj_desc->field.region_obj->field.internal_pcc_buffer +
                       obj_desc->field.base_byte_offset,
                       source_desc->buffer.pointer, data_length);
+
                if ((obj_desc->field.region_obj->region.address ==
                     PCC_MASTER_SUBSPACE
                     && MASTER_SUBSPACE_COMMAND(obj_desc->field.
index 89bc0a2d81630f5a2c05a12415105d110250a5ff..c5aa4b0deb70b488f394bfdb9e1017de40c5615e 100644 (file)
@@ -21,7 +21,7 @@ ACPI_MODULE_NAME("exserial")
  * FUNCTION:    acpi_ex_read_gpio
  *
  * PARAMETERS:  obj_desc            - The named field to read
- *              buffer              - Where the return data is returnd
+ *              buffer              - Where the return data is returned
  *
  * RETURN:      Status
  *
index a1f26b0ad449dafa33486a5af5ad13f78da598f2..75380be1c2ef1e2159f46cb8c951c0fb6514154e 100644 (file)
@@ -160,7 +160,7 @@ u8 acpi_ex_truncate_for32bit_table(union acpi_operand_object *obj_desc)
  * RETURN:      None
  *
  * DESCRIPTION: Obtain the ACPI hardware Global Lock, only if the field
- *              flags specifiy that it is to be obtained before field access.
+ *              flags specify that it is to be obtained before field access.
  *
  ******************************************************************************/
 
index 6b90aa89f942ef0ee1eb17f2016cb6103802973e..35fff5c75da148a506da81fd7b8b1c99610357f1 100644 (file)
@@ -75,7 +75,7 @@ acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node)
                /*
                 * On error, delete any namespace objects created by this table.
                 * We cannot initialize these objects, so delete them. There are
-                * a couple of expecially bad cases:
+                * a couple of especially bad cases:
                 * AE_ALREADY_EXISTS - namespace collision.
                 * AE_NOT_FOUND - the target of a Scope operator does not
                 * exist. This target of Scope must already exist in the
index 0c5662c4168c5a8e941b7cff7efb3794989c4ce4..e5cef1edf49faf6b6e3384bc4f7010be79534846 100644 (file)
@@ -350,7 +350,7 @@ acpi_ns_internalize_name(const char *external_name, char **converted_name)
  *
  * FUNCTION:    acpi_ns_externalize_name
  *
- * PARAMETERS:  internal_name_length - Lenth of the internal name below
+ * PARAMETERS:  internal_name_length - Length of the internal name below
  *              internal_name       - Internal representation of name
  *              converted_name_length - Where the length is returned
  *              converted_name      - Where the resulting external name
index 77a3263169fa87205940a8147edff0e8b7347d14..cafa8134b4c6f25970c395887749b0fbbcbea5ac 100644 (file)
@@ -32,7 +32,7 @@ struct acpi_rsdump_info acpi_rs_dump_irq[7] = {
         acpi_gbl_he_decode},
        {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(irq.polarity), "Polarity",
         acpi_gbl_ll_decode},
-       {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(irq.sharable), "Sharing",
+       {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(irq.shareable), "Sharing",
         acpi_gbl_shr_decode},
        {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(irq.interrupt_count),
         "Interrupt Count", NULL},
@@ -222,7 +222,7 @@ struct acpi_rsdump_info acpi_rs_dump_ext_irq[8] = {
         "Triggering", acpi_gbl_he_decode},
        {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(extended_irq.polarity), "Polarity",
         acpi_gbl_ll_decode},
-       {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(extended_irq.sharable), "Sharing",
+       {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(extended_irq.shareable), "Sharing",
         acpi_gbl_shr_decode},
        {ACPI_RSD_SOURCE, ACPI_RSD_OFFSET(extended_irq.resource_source), NULL,
         NULL},
@@ -255,7 +255,7 @@ struct acpi_rsdump_info acpi_rs_dump_gpio[16] = {
         "ProducerConsumer", acpi_gbl_consume_decode},
        {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(gpio.pin_config), "PinConfig",
         acpi_gbl_ppc_decode},
-       {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(gpio.sharable), "Sharing",
+       {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(gpio.shareable), "Sharing",
         acpi_gbl_shr_decode},
        {ACPI_RSD_2BITFLAG, ACPI_RSD_OFFSET(gpio.io_restriction),
         "IoRestriction", acpi_gbl_ior_decode},
@@ -285,7 +285,7 @@ struct acpi_rsdump_info acpi_rs_dump_pin_function[10] = {
         "RevisionId", NULL},
        {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_function.pin_config), "PinConfig",
         acpi_gbl_ppc_decode},
-       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_function.sharable), "Sharing",
+       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_function.shareable), "Sharing",
         acpi_gbl_shr_decode},
        {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(pin_function.function_number),
         "FunctionNumber", NULL},
@@ -308,7 +308,7 @@ struct acpi_rsdump_info acpi_rs_dump_pin_config[11] = {
         NULL},
        {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_config.producer_consumer),
         "ProducerConsumer", acpi_gbl_consume_decode},
-       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_config.sharable), "Sharing",
+       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_config.shareable), "Sharing",
         acpi_gbl_shr_decode},
        {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_config.pin_config_type),
         "PinConfigType", NULL},
@@ -353,7 +353,7 @@ struct acpi_rsdump_info acpi_rs_dump_pin_group_function[9] = {
        {ACPI_RSD_1BITFLAG,
         ACPI_RSD_OFFSET(pin_group_function.producer_consumer),
         "ProducerConsumer", acpi_gbl_consume_decode},
-       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_group_function.sharable),
+       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_group_function.shareable),
         "Sharing", acpi_gbl_shr_decode},
        {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(pin_group_function.function_number),
         "FunctionNumber", NULL},
@@ -375,7 +375,7 @@ struct acpi_rsdump_info acpi_rs_dump_pin_group_config[10] = {
         "RevisionId", NULL},
        {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_group_config.producer_consumer),
         "ProducerConsumer", acpi_gbl_consume_decode},
-       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_group_config.sharable),
+       {ACPI_RSD_1BITFLAG, ACPI_RSD_OFFSET(pin_group_config.shareable),
         "Sharing", acpi_gbl_shr_decode},
        {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(pin_group_config.pin_config_type),
         "PinConfigType", NULL},
index 134b67cd48ee876689e0b8f381aeedfc2902f069..b0d970efa072229133ee31e8617ecea50687bb50 100644 (file)
@@ -54,7 +54,7 @@ struct acpi_rsconvert_info acpi_rs_get_irq[9] = {
         AML_OFFSET(irq.flags),
         3},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.shareable),
         AML_OFFSET(irq.flags),
         4},
 
@@ -92,7 +92,7 @@ struct acpi_rsconvert_info acpi_rs_set_irq[14] = {
         AML_OFFSET(irq.flags),
         3},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.shareable),
         AML_OFFSET(irq.flags),
         4},
 
@@ -139,7 +139,7 @@ struct acpi_rsconvert_info acpi_rs_set_irq[14] = {
         ACPI_ACTIVE_HIGH},
 
        {ACPI_RSC_EXIT_NE, ACPI_RSC_COMPARE_VALUE,
-        ACPI_RS_OFFSET(data.irq.sharable),
+        ACPI_RS_OFFSET(data.irq.shareable),
         ACPI_EXCLUSIVE},
 
        /* We can optimize to a 2-byte irq_no_flags() descriptor */
@@ -178,7 +178,7 @@ struct acpi_rsconvert_info acpi_rs_convert_ext_irq[10] = {
         AML_OFFSET(extended_irq.flags),
         2},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.extended_irq.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.extended_irq.shareable),
         AML_OFFSET(extended_irq.flags),
         3},
 
index d073ebb51f90df0ff5415754c021bd668a1d8006..1b937d88980f3bd92bebdccd5a7ef272b26f867b 100644 (file)
@@ -39,7 +39,7 @@ struct acpi_rsconvert_info acpi_rs_convert_gpio[18] = {
         AML_OFFSET(gpio.flags),
         0},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.gpio.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.gpio.shareable),
         AML_OFFSET(gpio.int_flags),
         3},
 
@@ -128,7 +128,7 @@ struct acpi_rsconvert_info acpi_rs_convert_pin_function[13] = {
         AML_OFFSET(pin_function.revision_id),
         1},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_function.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_function.shareable),
         AML_OFFSET(pin_function.flags),
         0},
 
@@ -518,7 +518,7 @@ struct acpi_rsconvert_info acpi_rs_convert_pin_config[14] = {
         AML_OFFSET(pin_config.revision_id),
         1},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_config.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_config.shareable),
         AML_OFFSET(pin_config.flags),
         0},
 
@@ -658,7 +658,7 @@ struct acpi_rsconvert_info acpi_rs_convert_pin_group_function[13] = {
         AML_OFFSET(pin_group_function.revision_id),
         1},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_group_function.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_group_function.shareable),
         AML_OFFSET(pin_group_function.flags),
         0},
 
@@ -735,7 +735,7 @@ struct acpi_rsconvert_info acpi_rs_convert_pin_group_config[14] = {
         AML_OFFSET(pin_group_config.revision_id),
         1},
 
-       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_group_config.sharable),
+       {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.pin_group_config.shareable),
         AML_OFFSET(pin_group_config.flags),
         0},
 
index 2c67351d5a7905259c325c38a43193279f610005..0041bfba9abcfac2bcf280927220198244cde5d1 100644 (file)
@@ -556,7 +556,7 @@ static void acpi_tb_convert_fadt(void)
                                 * 64-bit X length field.
                                 * Note: If the legacy length field is > 0xFF bits, ignore
                                 * this check. (GPE registers can be larger than the
-                                * 64-bit GAS structure can accomodate, 0xFF bits).
+                                * 64-bit GAS structure can accommodate, 0xFF bits).
                                 */
                                if ((ACPI_MUL_8(length) <= ACPI_UINT8_MAX) &&
                                    (address64->bit_width !=
index 593c20c20104545fd9b0cf673d31cb99837dcdbb..36592888f0e7405f945020bce6eab4c3a03db5d4 100644 (file)
@@ -108,7 +108,7 @@ acpi_initialize_tables(struct acpi_table_desc *initial_table_array,
        /*
         * Get the root table (RSDT or XSDT) and extract all entries to the local
         * Root Table Array. This array contains the information of the RSDT/XSDT
-        * in a common, more useable format.
+        * in a common, more usable format.
         */
        status = acpi_tb_parse_root_table(rsdp_address);
        return_ACPI_STATUS(status);
@@ -169,7 +169,7 @@ acpi_status ACPI_INIT_FUNCTION acpi_reallocate_root_table(void)
        if (!acpi_gbl_enable_table_validation) {
                /*
                 * Now it's safe to do full table validation. We can do deferred
-                * table initilization here once the flag is set.
+                * table initialization here once the flag is set.
                 */
                acpi_gbl_enable_table_validation = TRUE;
                for (i = 0; i < acpi_gbl_root_table_list.current_table_count;
index 7c352cba052893bb59f135b597f797a345974cd4..c3b2222e21298e489c30fd9d330df1b1f821169d 100644 (file)
@@ -196,7 +196,7 @@ static acpi_status acpi_irq_parse_one_cb(struct acpi_resource *ares,
                fwnode = acpi_gsi_domain_id;
                acpi_irq_parse_one_match(fwnode, irq->interrupts[ctx->index],
                                         irq->triggering, irq->polarity,
-                                        irq->sharable, ctx);
+                                        irq->shareable, ctx);
                return AE_CTRL_TERMINATE;
        case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
                eirq = &ares->data.extended_irq;
@@ -209,7 +209,7 @@ static acpi_status acpi_irq_parse_one_cb(struct acpi_resource *ares,
                fwnode = acpi_get_irq_source_fwhandle(&eirq->resource_source);
                acpi_irq_parse_one_match(fwnode, eirq->interrupts[ctx->index],
                                         eirq->triggering, eirq->polarity,
-                                        eirq->sharable, ctx);
+                                        eirq->shareable, ctx);
                return AE_CTRL_TERMINATE;
        }
 
index d5eec352a6e1293c13c70f421e4379e529793920..df70b1eaef58f0d5b3e9b65c284a1d48f8c7d2e3 100644 (file)
@@ -317,10 +317,10 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
                resource->res.data.irq.polarity =
                    link->irq.polarity;
                if (link->irq.triggering == ACPI_EDGE_SENSITIVE)
-                       resource->res.data.irq.sharable =
+                       resource->res.data.irq.shareable =
                            ACPI_EXCLUSIVE;
                else
-                       resource->res.data.irq.sharable = ACPI_SHARED;
+                       resource->res.data.irq.shareable = ACPI_SHARED;
                resource->res.data.irq.interrupt_count = 1;
                resource->res.data.irq.interrupts[0] = irq;
                break;
@@ -335,10 +335,10 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
                resource->res.data.extended_irq.polarity =
                    link->irq.polarity;
                if (link->irq.triggering == ACPI_EDGE_SENSITIVE)
-                       resource->res.data.irq.sharable =
+                       resource->res.data.irq.shareable =
                            ACPI_EXCLUSIVE;
                else
-                       resource->res.data.irq.sharable = ACPI_SHARED;
+                       resource->res.data.irq.shareable = ACPI_SHARED;
                resource->res.data.extended_irq.interrupt_count = 1;
                resource->res.data.extended_irq.interrupts[0] = irq;
                /* ignore resource_source, it's optional */
index 316a0fc785e3629a4bdd6dadd031cbe6691cec70..d556f2144de813cfc928e3a3e48128ce492c6f8c 100644 (file)
@@ -476,7 +476,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
                }
                acpi_dev_get_irqresource(res, irq->interrupts[index],
                                         irq->triggering, irq->polarity,
-                                        irq->sharable, true);
+                                        irq->shareable, true);
                break;
        case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
                ext_irq = &ares->data.extended_irq;
@@ -487,7 +487,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
                if (is_gsi(ext_irq))
                        acpi_dev_get_irqresource(res, ext_irq->interrupts[index],
                                         ext_irq->triggering, ext_irq->polarity,
-                                        ext_irq->sharable, false);
+                                        ext_irq->shareable, false);
                else
                        acpi_dev_irqresource_disabled(res, 0);
                break;
index 48534bda73d39eb90e6ffde1a305e32582f8ef51..22955de8b997b949b1666364bfd8e7e59b09af13 100644 (file)
@@ -897,7 +897,7 @@ acpi_gpio_adr_space_handler(u32 function, acpi_physical_address address,
                 * event but only if the access here is ACPI_READ. In that
                 * case we "borrow" the event GPIO instead.
                 */
-               if (!found && agpio->sharable == ACPI_SHARED &&
+               if (!found && agpio->shareable == ACPI_SHARED &&
                     function == ACPI_READ) {
                        struct acpi_gpio_event *event;
 
index b205b037fd61e6cb71eb16d5c0ee019569de71aa..4bfbfa3f78e6d38b74745194a8066155d8652232 100644 (file)
@@ -4392,7 +4392,7 @@ sony_pic_read_possible_resource(struct acpi_resource *resource, void *context)
                                list_add(&interrupt->list, &dev->interrupts);
                                interrupt->irq.triggering = p->triggering;
                                interrupt->irq.polarity = p->polarity;
-                               interrupt->irq.sharable = p->sharable;
+                               interrupt->irq.shareable = p->shareable;
                                interrupt->irq.interrupt_count = 1;
                                interrupt->irq.interrupts[0] = p->interrupts[i];
                        }
@@ -4546,7 +4546,7 @@ static int sony_pic_enable(struct acpi_device *device,
                memcpy(&resource->res3.data.irq, &irq->irq,
                                sizeof(struct acpi_resource_irq));
                /* we requested a shared irq */
-               resource->res3.data.irq.sharable = ACPI_SHARED;
+               resource->res3.data.irq.shareable = ACPI_SHARED;
 
                resource->res4.type = ACPI_RESOURCE_TYPE_END_TAG;
                resource->res4.length = sizeof(struct acpi_resource);
@@ -4565,7 +4565,7 @@ static int sony_pic_enable(struct acpi_device *device,
                memcpy(&resource->res2.data.irq, &irq->irq,
                                sizeof(struct acpi_resource_irq));
                /* we requested a shared irq */
-               resource->res2.data.irq.sharable = ACPI_SHARED;
+               resource->res2.data.irq.shareable = ACPI_SHARED;
 
                resource->res3.type = ACPI_RESOURCE_TYPE_END_TAG;
                resource->res3.length = sizeof(struct acpi_resource);
@@ -4779,7 +4779,7 @@ static int sony_pic_add(struct acpi_device *device)
                                        irq->irq.interrupts[0],
                                        irq->irq.triggering,
                                        irq->irq.polarity,
-                                       irq->irq.sharable);
+                                       irq->irq.shareable);
                        spic_dev.cur_irq = irq;
                        break;
                }
index 43d8ed577e70776edb36e322f58cf096f6e7e729..c79417ca1b3cb2d69d52175293f2ff177642a620 100644 (file)
@@ -215,7 +215,7 @@ static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,
                if (i >= 0) {
                        flags = acpi_dev_irq_flags(gpio->triggering,
                                                   gpio->polarity,
-                                                  gpio->sharable);
+                                                  gpio->shareable);
                } else {
                        flags = IORESOURCE_DISABLED;
                }
@@ -324,7 +324,7 @@ static __init void pnpacpi_parse_irq_option(struct pnp_dev *dev,
                if (p->interrupts[i])
                        __set_bit(p->interrupts[i], map.bits);
 
-       flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->sharable);
+       flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable);
        pnp_register_irq_resource(dev, option_flags, &map, flags);
 }
 
@@ -348,7 +348,7 @@ static __init void pnpacpi_parse_ext_irq_option(struct pnp_dev *dev,
                }
        }
 
-       flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->sharable);
+       flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable);
        pnp_register_irq_resource(dev, option_flags, &map, flags);
 }
 
@@ -681,7 +681,7 @@ static void pnpacpi_encode_irq(struct pnp_dev *dev,
        decode_irq_flags(dev, p->flags, &triggering, &polarity, &shareable);
        irq->triggering = triggering;
        irq->polarity = polarity;
-       irq->sharable = shareable;
+       irq->shareable = shareable;
        irq->interrupt_count = 1;
        irq->interrupts[0] = p->start;
 
@@ -689,7 +689,7 @@ static void pnpacpi_encode_irq(struct pnp_dev *dev,
                (int) p->start,
                triggering == ACPI_LEVEL_SENSITIVE ? "level" : "edge",
                polarity == ACPI_ACTIVE_LOW ? "low" : "high",
-               irq->sharable == ACPI_SHARED ? "shared" : "exclusive",
+               irq->shareable == ACPI_SHARED ? "shared" : "exclusive",
                irq->descriptor_length);
 }
 
@@ -711,14 +711,14 @@ static void pnpacpi_encode_ext_irq(struct pnp_dev *dev,
        extended_irq->producer_consumer = ACPI_CONSUMER;
        extended_irq->triggering = triggering;
        extended_irq->polarity = polarity;
-       extended_irq->sharable = shareable;
+       extended_irq->shareable = shareable;
        extended_irq->interrupt_count = 1;
        extended_irq->interrupts[0] = p->start;
 
        pnp_dbg(&dev->dev, "  encode irq %d %s %s %s\n", (int) p->start,
                triggering == ACPI_LEVEL_SENSITIVE ? "level" : "edge",
                polarity == ACPI_ACTIVE_LOW ? "low" : "high",
-               extended_irq->sharable == ACPI_SHARED ? "shared" : "exclusive");
+               extended_irq->shareable == ACPI_SHARED ? "shared" : "exclusive");
 }
 
 static void pnpacpi_encode_dma(struct pnp_dev *dev,
index 298e15100789de7786cada2410304474afeb2e54..16a83959e616f114001f19870047787d2bb2eac4 100644 (file)
 
 /*
  * Maximal number of elements the Result Stack can contain,
- * it may be an arbitray value not exceeding the types of
+ * it may be an arbitrary value not exceeding the types of
  * result_size and result_count (now u8).
  */
 #define ACPI_RESULTS_OBJ_NUM_MAX        255
index 6b4fed5b9d118b63fd833f210f79c7960cd59b89..233a72f169bb7e02b6de42d8c2350c9371163f78 100644 (file)
@@ -311,7 +311,8 @@ static const struct acpi_exception_info acpi_gbl_exception_names_aml[] = {
                  "An ACPI name contains invalid character(s)"),
        EXCEP_TXT("AE_AML_NAME_NOT_FOUND",
                  "Could not resolve a named reference"),
-       EXCEP_TXT("AE_AML_INTERNAL", "An internal error within the interprete"),
+       EXCEP_TXT("AE_AML_INTERNAL",
+                 "An internal error within the interpreter"),
        EXCEP_TXT("AE_AML_INVALID_SPACE_ID",
                  "An Operation Region SpaceID is invalid"),
        EXCEP_TXT("AE_AML_STRING_LIMIT",
index 000145ded0ec3e2d7cae46efd447e4029ad22b73..62930583219fb2291b809d0e34d9497966d6be49 100644 (file)
@@ -139,7 +139,7 @@ struct acpi_resource_irq {
        u8 descriptor_length;
        u8 triggering;
        u8 polarity;
-       u8 sharable;
+       u8 shareable;
        u8 wake_capable;
        u8 interrupt_count;
        u8 interrupts[1];
@@ -328,7 +328,7 @@ struct acpi_resource_extended_irq {
        u8 producer_consumer;
        u8 triggering;
        u8 polarity;
-       u8 sharable;
+       u8 shareable;
        u8 wake_capable;
        u8 interrupt_count;
        struct acpi_resource_source resource_source;
@@ -348,7 +348,7 @@ struct acpi_resource_gpio {
        u8 connection_type;
        u8 producer_consumer;   /* For values, see Producer/Consumer above */
        u8 pin_config;
-       u8 sharable;            /* For values, see Interrupt Attributes above */
+       u8 shareable;           /* For values, see Interrupt Attributes above */
        u8 wake_capable;        /* For values, see Interrupt Attributes above */
        u8 io_restriction;
        u8 triggering;          /* For values, see Interrupt Attributes above */
@@ -508,7 +508,7 @@ struct acpi_resource_uart_serialbus {
 struct acpi_resource_pin_function {
        u8 revision_id;
        u8 pin_config;
-       u8 sharable;            /* For values, see Interrupt Attributes above */
+       u8 shareable;           /* For values, see Interrupt Attributes above */
        u16 function_number;
        u16 pin_table_length;
        u16 vendor_length;
@@ -520,7 +520,7 @@ struct acpi_resource_pin_function {
 struct acpi_resource_pin_config {
        u8 revision_id;
        u8 producer_consumer;   /* For values, see Producer/Consumer above */
-       u8 sharable;            /* For values, see Interrupt Attributes above */
+       u8 shareable;           /* For values, see Interrupt Attributes above */
        u8 pin_config_type;
        u32 pin_config_value;
        u16 pin_table_length;
@@ -560,7 +560,7 @@ struct acpi_resource_pin_group {
 struct acpi_resource_pin_group_function {
        u8 revision_id;
        u8 producer_consumer;   /* For values, see Producer/Consumer above */
-       u8 sharable;            /* For values, see Interrupt Attributes above */
+       u8 shareable;           /* For values, see Interrupt Attributes above */
        u16 function_number;
        u16 vendor_length;
        struct acpi_resource_source resource_source;
@@ -571,7 +571,7 @@ struct acpi_resource_pin_group_function {
 struct acpi_resource_pin_group_config {
        u8 revision_id;
        u8 producer_consumer;   /* For values, see Producer/Consumer above */
-       u8 sharable;            /* For values, see Interrupt Attributes above */
+       u8 shareable;           /* For values, see Interrupt Attributes above */
        u8 pin_config_type;     /* For values, see pin_config_type above */
        u32 pin_config_value;
        u16 vendor_length;
index d37ddde8bf8feb929bb2986568fc1d63b8803433..d14037ddf10897ae9934b0d725664bf71fd5d089 100644 (file)
@@ -562,7 +562,7 @@ struct acpi_dmar_hardware_unit {
 
 #define ACPI_DMAR_INCLUDE_ALL       (1)
 
-/* 1: Reserved Memory Defininition */
+/* 1: Reserved Memory Definition */
 
 struct acpi_dmar_reserved_memory {
        struct acpi_dmar_header header;
@@ -1395,7 +1395,7 @@ struct acpi_table_hmat {
 /* Values for HMAT structure types */
 
 enum acpi_hmat_type {
-       ACPI_HMAT_TYPE_ADDRESS_RANGE = 0,       /* Memory subystem address range */
+       ACPI_HMAT_TYPE_ADDRESS_RANGE = 0,       /* Memory subsystem address range */
        ACPI_HMAT_TYPE_LOCALITY = 1,    /* System locality latency and bandwidth information */
        ACPI_HMAT_TYPE_CACHE = 2,       /* Memory side cache information */
        ACPI_HMAT_TYPE_RESERVED = 3     /* 3 and greater are reserved */
index 6511c4ddec816ddb3b0cc84dd3315d4bc7760c73..e45ced27f4c30fa4dadd06e2a3d5a166ad0b0c59 100644 (file)
@@ -143,7 +143,7 @@ struct acpi_iort_memory_access {
  */
 struct acpi_iort_its_group {
        u32 its_count;
-       u32 identifiers[1];     /* GIC ITS identifier arrary */
+       u32 identifiers[1];     /* GIC ITS identifier array */
 };
 
 struct acpi_iort_named_component {