media: v4l2-flash: Check whether setting LED brightness succeeded
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 24 Jun 2021 12:32:02 +0000 (14:32 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 4 Aug 2021 12:43:51 +0000 (14:43 +0200)
commit4d7adf0236c18befcac449fa1938e32f4bd1ddad
tree00e8de1c047ee3e08179f515dbc64d55e7f778c9
parenta40eba9b26f70c7a967647a05ce0ef84e82140ba
media: v4l2-flash: Check whether setting LED brightness succeeded

Setting LED brightness may return an error but the return value was never
checked by the V4L2 flash LED class. Do it now.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-flash-led-class.c