platform/x86: thinkpad_acpi: Add battery quirk for Thinkpad X120e
authorOlli Asikainen <olli.asikainen@gmail.com>
Tue, 24 Oct 2023 19:09:21 +0000 (22:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:06:56 +0000 (17:06 +0000)
[ Upstream commit 916646758aea81a143ce89103910f715ed923346 ]

Thinkpad X120e also needs this battery quirk.

Signed-off-by: Olli Asikainen <olli.asikainen@gmail.com>
Link: https://lore.kernel.org/r/20231024190922.2742-1-olli.asikainen@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/thinkpad_acpi.c

index 3bb60687f2e42b8283c6388ed7080e0dad6857db..05a55bc31c7960a081e84ba8c48add01d54de88b 100644 (file)
@@ -10019,6 +10019,7 @@ static const struct tpacpi_quirk battery_quirk_table[] __initconst = {
         * Individual addressing is broken on models that expose the
         * primary battery as BAT1.
         */
+       TPACPI_Q_LNV('8', 'F', true),       /* Thinkpad X120e */
        TPACPI_Q_LNV('J', '7', true),       /* B5400 */
        TPACPI_Q_LNV('J', 'I', true),       /* Thinkpad 11e */
        TPACPI_Q_LNV3('R', '0', 'B', true), /* Thinkpad 11e gen 3 */