]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: dac: ti-dac7311: Add check for spi_setup
authorChen Ni <nichen@iscas.ac.cn>
Fri, 5 Jul 2024 08:42:50 +0000 (16:42 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 29 Jul 2024 19:31:13 +0000 (20:31 +0100)
commit2903a2f260039a851ba60bdb88c09aa6d4eafd80
treea151537b7a685bb5bec456884286624675efcb34
parent2956979dbd0d47473b41129d8fc8127ed13fd687
iio: dac: ti-dac7311: Add check for spi_setup

Add check for the return value of spi_setup() and return the error
if it fails in order to catch the error.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20240705084250.3006527-1-nichen@iscas.ac.cn
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ti-dac7311.c