Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
58 lines
1.2 KiB
C
58 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* acpi_lpat.h - LPAT table processing functions
|
|
*
|
|
* Copyright (C) 2015 Intel Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef ACPI_LPAT_H
|
|
#define ACPI_LPAT_H
|
|
|
|
struct acpi_lpat {
|
|
int temp;
|
|
int raw;
|
|
};
|
|
|
|
struct acpi_lpat_conversion_table {
|
|
struct acpi_lpat *lpat;
|
|
int lpat_count;
|
|
};
|
|
|
|
#ifdef CONFIG_ACPI
|
|
|
|
int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table,
|
|
int raw);
|
|
int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table,
|
|
int temp);
|
|
struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(acpi_handle
|
|
handle);
|
|
void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
|
|
*lpat_table);
|
|
|
|
#else
|
|
static int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table,
|
|
int raw)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table,
|
|
int temp)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(
|
|
acpi_handle handle)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
|
|
*lpat_table)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
#endif
|