0001
0002
0003
0004
0005
0006
0007
0008 #ifndef ACPI_LPAT_H
0009 #define ACPI_LPAT_H
0010
0011 struct acpi_lpat {
0012 int temp;
0013 int raw;
0014 };
0015
0016 struct acpi_lpat_conversion_table {
0017 struct acpi_lpat *lpat;
0018 int lpat_count;
0019 };
0020
0021 #ifdef CONFIG_ACPI
0022
0023 int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table,
0024 int raw);
0025 int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table,
0026 int temp);
0027 struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(acpi_handle
0028 handle);
0029 void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
0030 *lpat_table);
0031
0032 #else
0033 static int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table,
0034 int raw)
0035 {
0036 return 0;
0037 }
0038
0039 static int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table,
0040 int temp)
0041 {
0042 return 0;
0043 }
0044
0045 static struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(
0046 acpi_handle handle)
0047 {
0048 return NULL;
0049 }
0050
0051 static void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
0052 *lpat_table)
0053 {
0054 }
0055
0056 #endif
0057 #endif