]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: qcom-spmi-adc5: Tidy up adc5_get_fw_data() error messages
authorBjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Fri, 4 Oct 2024 23:11:01 +0000 (16:11 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Oct 2024 11:19:01 +0000 (12:19 +0100)
commit0d8f584dfa983bff8bcf8bd8b9646a626716bea1
tree5a324944a5b05c7d4372664d4cfc5055b9f97546
parenta9bb0610b2fade407d081169325b6a91312849b7
iio: adc: qcom-spmi-adc5: Tidy up adc5_get_fw_data() error messages

In the event that no channels (child nodes) are defined, the adc5 driver
will provide a generic error message indicating that adc5_get_fw_data()
returned -EINVAL. In all other error cases we get two error messages,
one helpful and the generic one.

Add a specific error message for the no channels case, and drop the
generic one, in order to improve the generates log prints in both cases.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Link: https://patch.msgid.link/20241004-spmi-adc5-no-channel-error-v1-1-1a43d13ae967@oss.qualcomm.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/qcom-spmi-adc5.c