diff options
| author | 2026-06-24 13:37:44 +0800 | |
|---|---|---|
| committer | 2026-06-26 11:30:50 +0200 | |
| commit | 415c63896b76fd98883e190bc7518383cb01779c (patch) | |
| tree | d4706afe1e3b1a765a4780c69cbe43591e3cf707 /scripts/Makefile.thinlto | |
| parent | gpio: realtek: Add driver for Realtek DHC RTD1625 SoC (diff) | |
gpio: pca9570: Use I2C match data
The driver stores chip metadata in both the OF match table and the I2C
id table, but probe currently reads it with device_get_match_data().
That helper only returns firmware-node match data, so an I2C-id/modalias
match can leave chip_data NULL before the driver dereferences it to read
ngpio.
Use i2c_get_match_data() so the I2C id table driver_data is consumed
when firmware match data is not present.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260624053744.72612-1-pengpeng@iscas.ac.cn
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
