platform/chrome: cros_ec_lpc: introduce a priv struct for the lpc device
authorDustin L. Howett <dustin@howett.net>
Wed, 3 Apr 2024 00:47:10 +0000 (19:47 -0500)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 24 Apr 2024 08:45:59 +0000 (16:45 +0800)
commit8d4a9c69de19b10964e61398a60c3b7373d005a6
tree1acfaee3616a28b08ce343f9dd05bd5f5e16a31f
parentd33d22551d80ed0afbb8d23befa2384c4d963685
platform/chrome: cros_ec_lpc: introduce a priv struct for the lpc device

lpc_driver_data stores the MMIO port base for EC mapped memory.
cros_ec_lpc_readmem uses this port base instead of hardcoding
EC_LPC_ADDR_MEMMAP.

Signed-off-by: Dustin L. Howett <dustin@howett.net>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Tested-by: Thomas Weißschuh <linux@weissschuh.net>
Tested-by: Mario Limonciello <superm1@gmail.com>
Link: https://lore.kernel.org/r/20240403004713.130365-2-dustin@howett.net
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lpc.c