platform/chrome: cros_ec_sysfs: provide ID table for avoiding fallback match
authorTzung-Bi Shih <tzungbi@kernel.org>
Fri, 29 Mar 2024 07:56:22 +0000 (15:56 +0800)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 24 Apr 2024 08:45:57 +0000 (16:45 +0800)
commit82efd459b9f52af30e14bdf640e3961ac1156762
treefe8c1cc9cbeb4d1ad1622daa6a62be2714f3a805
parent254b80ac098de4fff01bb113c20f6407a8c90b27
platform/chrome: cros_ec_sysfs: 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>
Link: https://lore.kernel.org/r/20240329075630.2069474-11-tzungbi@kernel.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_sysfs.c