OSDN Git Service

power: supply: max17040: remove unneeded double cast
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 19 Apr 2021 16:33:34 +0000 (18:33 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 20 Apr 2021 14:18:08 +0000 (16:18 +0200)
commit6dfbb2cece78fc54a3f8bd116dbe20cf3bc63df1
tree05304006340f199232e316fd56cdbfaae2f1af5a
parenta837f35c5ae0b0fb2b2b6bc1765b7be5a44b0a19
power: supply: max17040: remove unneeded double cast

There is no need for double explicit cast from of_device_get_match_data()
(uintptr_t and then to target enum) because implicit conversion from
uintptr_t to enum is straightforward (uintptr_t is a integer type).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17040_battery.c