]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: kxcjk1013: Replace is_smo8500_device with an acpi_type enum
authorHans de Goede <hdegoede@redhat.com>
Tue, 10 Nov 2020 13:38:34 +0000 (14:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:39:10 +0000 (13:39 +0100)
commitb8b48e4a9cd09e1882554e6fc71de28619d909d9
tree0c671b5d3ccd0fc7ba723ced0c3157fdbf1d8efe
parentc31531d33e40aaabc10ec22ef9f5667db58cbd74
iio: accel: kxcjk1013: Replace is_smo8500_device with an acpi_type enum

commit 11e94f28c3de35d5ad1ac6a242a5b30f4378991a upstream.

Replace the boolean is_smo8500_device variable with an acpi_type enum.

For now this can be either ACPI_GENERIC or ACPI_SMO8500, this is a
preparation patch for adding special handling for the KIOX010A ACPI HID,
which will add a ACPI_KIOX010A acpi_type to the introduced enum.

For stable as needed as precursor for next patch.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fixes: 7f6232e69539 ("iio: accel: kxcjk1013: Add KIOX010A ACPI Hardware-ID")
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201110133835.129080-2-hdegoede@redhat.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/kxcjk-1013.c