]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/chrome: cros_ec_lpc: Merge lpc_driver_ops into ec private structure
authorGwendal Grignou <gwendal@chromium.org>
Tue, 7 Jan 2025 17:45:13 +0000 (09:45 -0800)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 8 Jan 2025 02:11:43 +0000 (02:11 +0000)
commit58517215304b6113beaa3a319ed19cdd9f8fbcc1
tree84edba5a6b7c2c4c54a7c50d19f90fb691da561f
parentdf78050d1a1338dd3e07db959b42c2d03969ed30
platform/chrome: cros_ec_lpc: Merge lpc_driver_ops into ec private structure

Remove cros_ec_lpc_ops global variable, since EC specific info can be
stored in the device private structure, introduced in
commit e4dbf9d65e4218 ("platform/chrome: cros_ec_lpc: add a "quirks" system").

Add ec_lpc pointer to read/write function to be able to access ec
specific data.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20250107174514.2748108-2-gwendal@chromium.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lpc.c