diff options
author | 2024-05-31 11:34:07 +0200 | |
---|---|---|
committer | 2024-06-26 12:45:25 +0200 | |
commit | 97ca843f6ad38036472058c152fb294e5af9f147 (patch) | |
tree | 4ff427d340a520fa086d27ef77d443810b64dd18 /scripts/gdb/linux/utils.py | |
parent | i2c: Drop explicit initialization of struct i2c_device_id::driver_data to 0 (diff) | |
download | wireguard-linux-97ca843f6ad38036472058c152fb294e5af9f147.tar.xz wireguard-linux-97ca843f6ad38036472058c152fb294e5af9f147.zip |
i2c: dev: Check for I2C_FUNC_I2C before calling i2c_transfer
It is good practice to check that the underlying adapter supports
I2C transfers before attempting them. The i2c core would eventually
return an error, but it's more efficient to fail early.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions