aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/access_variable_array.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2024-05-31 11:34:07 +0200
committerWolfram Sang <wsa+renesas@sang-engineering.com>2024-06-26 12:45:25 +0200
commit97ca843f6ad38036472058c152fb294e5af9f147 (patch)
tree4ff427d340a520fa086d27ef77d443810b64dd18 /tools/testing/selftests/bpf/prog_tests/access_variable_array.c
parentd08ed10623b3cba46102cd3d569a7517cbf48e40 (diff)
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 'tools/testing/selftests/bpf/prog_tests/access_variable_array.c')
0 files changed, 0 insertions, 0 deletions