Skip to contentSkip to conversation

acpi: use macro to replace hard number

PATCH Applied [email protected] 2 participants 2 messages Oct 29, 2008 – Nov 7, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 acpi: use macro to replace hard number

From: Yinghai Lu <[email protected]>

Impact: cleanup

Use MACRO for rev 3 fadt id instead of 3 directly.

---

 drivers/acpi/tables/tbfadt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/tables/tbfadt.c renamed from drivers/acpi/tables/tbfadt.c~acpi-use-macro-to-replace-hard-number +1 -1
diff -puN drivers/acpi/tables/tbfadt.c~acpi-use-macro-to-replace-hard-number drivers/acpi/tables/tbfadt.c
@@ -304,7 +304,7 @@ static void acpi_tb_convert_fadt(void)
 	 * The ACPI 1.0 reserved fields that will be zeroed are the bytes located at
 	 * offset 45, 55, 95, and the word located at offset 109, 110.
 	 */
-	if (acpi_gbl_FADT.header.revision < 3) {
+	if (acpi_gbl_FADT.header.revision < FADT2_REVISION_ID) {
 		acpi_gbl_FADT.preferred_profile = 0;
 		acpi_gbl_FADT.pstate_control = 0;
 		acpi_gbl_FADT.cst_control = 0;

_

reviewer Applied
#1 lore raw

applied.

thanks,
-lenl

Quoted 31 lines · On Wed, 29 Oct 2008, [email protected] wrote:

From: Yinghai Lu <[email protected]>

Impact: cleanup

Use MACRO for rev 3 fadt id instead of 3 directly.

---

 drivers/acpi/tables/tbfadt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/acpi/tables/tbfadt.c~acpi-use-macro-to-replace-hard-number drivers/acpi/tables/tbfadt.c

drivers/acpi/tables/tbfadt.c renamed from drivers/acpi/tables/tbfadt.c~acpi-use-macro-to-replace-hard-number +1 -1
@@ -304,7 +304,7 @@ static void acpi_tb_convert_fadt(void)
 	 * The ACPI 1.0 reserved fields that will be zeroed are the bytes located at
 	 * offset 45, 55, 95, and the word located at offset 109, 110.
 	 */
-	if (acpi_gbl_FADT.header.revision < 3) {
+	if (acpi_gbl_FADT.header.revision < FADT2_REVISION_ID) {
 		acpi_gbl_FADT.preferred_profile = 0;
 		acpi_gbl_FADT.pstate_control = 0;
 		acpi_gbl_FADT.cst_control = 0;

_
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html