media: ar0521: Refuse unsupported controls
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 4 Nov 2022 14:24:48 +0000 (14:24 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:44:24 +0000 (08:44 +0000)
commit6e27ef31a5c17068dc032289f3cc132ceedce2f8
tree565524921104be0c5b281457ccb2a0ba007e5af7
parent3a51fd71b6f59610abad0e88315c20fd3e5b4b79
media: ar0521: Refuse unsupported controls

Refuse unsupported controls by returning -EINVAL in the s_ctrl
operation. While at it, remove a the default switch case in the first
switch as it effectively is now a no-op.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ar0521.c