public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 3/3] acpi: use macro to replace hard number
@ 2008-10-29 21:13 akpm
  2008-11-07  2:51 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2008-10-29 21:13 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi, akpm, yinghai

From: Yinghai Lu <yinghai@kernel.org>

Impact: cleanup

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

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 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
--- a/drivers/acpi/tables/tbfadt.c~acpi-use-macro-to-replace-hard-number
+++ a/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;
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch 3/3] acpi: use macro to replace hard number
  2008-10-29 21:13 [patch 3/3] acpi: use macro to replace hard number akpm
@ 2008-11-07  2:51 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2008-11-07  2:51 UTC (permalink / raw)
  To: akpm; +Cc: linux-acpi, yinghai

applied.

thanks,
-lenl

On Wed, 29 Oct 2008, akpm@linux-foundation.org wrote:

> From: Yinghai Lu <yinghai@kernel.org>
> 
> Impact: cleanup
> 
> Use MACRO for rev 3 fadt id instead of 3 directly.
> 
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  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
> --- a/drivers/acpi/tables/tbfadt.c~acpi-use-macro-to-replace-hard-number
> +++ a/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;
> _
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-07  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 21:13 [patch 3/3] acpi: use macro to replace hard number akpm
2008-11-07  2:51 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox