diff options
| author | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-05-25 05:26:52 +0000 |
|---|---|---|
| committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-05-28 02:17:30 +0000 |
| commit | 74aa0d4008051878c632530f2a2c13cff8e9b171 (patch) | |
| tree | e82618e5bc5f922afbc0a70400f36e732ca50f7b /scripts/Makefile.thinlto | |
| parent | 5ad1406881102bc3e94fd25311d1728dfaf435a2 (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
