platform/x86/siemens: simatic-ipc-batt: fix bat reading in BX_21A
authorxingtong.wu <xingtong.wu@siemens.com>
Fri, 28 Jul 2023 08:36:51 +0000 (10:36 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Jul 2023 11:13:48 +0000 (13:13 +0200)
commitd0563dd3345f7d6feb950204a3480f169d93a659
treefe30a748e727d8737c7787c1d6cf1ae2a25d09ca
parent9bc289b8123ce149bc4088dbe74300057fa244c3
platform/x86/siemens: simatic-ipc-batt: fix bat reading in BX_21A

There was a case missing in a switch statement which lead to that model
not actually reading the GPIOs. That switch statement got simplified
now. Additionally on that model we need to initialize one pin
differently. As a drive-by finding also add a missing newline.

Fixes: 917f54340794 ("platform/x86: simatic-ipc: add CMOS battery monitoring")
Reported-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: xingtong.wu <xingtong.wu@siemens.com>
Signed-off-by: Henning Schild <henning.schild@siemens.com>
Link: https://lore.kernel.org/r/20230728083651.19747-1-henning.schild@siemens.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/siemens/simatic-ipc-batt.c