power: supply: cros_pchg: provide ID table for avoiding fallback match
authorTzung-Bi Shih <tzungbi@kernel.org>
Mon, 1 Apr 2024 03:00:50 +0000 (11:00 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 1 Apr 2024 09:35:47 +0000 (11:35 +0200)
commitd6486a13665e9df5b503a375e18226e1824f21d3
treec4fb3f63682af6727b771446186a69e7dbdf8b75
parent0f8678c34cbfdc63569a9b0ede1fe235ec6ec693
power: supply: cros_pchg: provide ID table for avoiding fallback match

Instead of using fallback driver name match, provide ID table[1] for the
primary match.

[1]: https://elixir.bootlin.com/linux/v6.8/source/drivers/base/platform.c#L1353

Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20240401030052.2887845-5-tzungbi@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cros_peripheral_charger.c