summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2026-05-25 08:26:52 +0300
committerTzung-Bi Shih <tzungbi@kernel.org>2026-05-28 05:17:30 +0300
commit74aa0d4008051878c632530f2a2c13cff8e9b171 (patch)
treee82618e5bc5f922afbc0a70400f36e732ca50f7b /include/linux
parent5ad1406881102bc3e94fd25311d1728dfaf435a2 (diff)
downloadlinux-74aa0d4008051878c632530f2a2c13cff8e9b171.tar.xz
platform/chrome: cros_ec_chardev: Move data to chardev_pdata
Move `ec_dev` and `cmd_offset` from `chardev_priv` to `chardev_pdata` as they are per-device properties but not per-open-file properties. Hold a reference to `chardev_pdata` for each open file to ensure the data remains valid even if the underlying platform device is removed. Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20260525052654.4076429-3-tzungbi@kernel.org Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions