]> git.karo-electronics.de Git - linux-beck.git/commit
[media] si2168: return error if set_frontend is called with invalid parameters
authorOlli Salonen <olli.salonen@iki.fi>
Fri, 16 Jan 2015 12:35:19 +0000 (09:35 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Feb 2015 20:12:46 +0000 (18:12 -0200)
commit683e98b6029155949d7373ba854283770b4a16ef
tree8d71499da6ec51b224944faefda509178c23464a
parent3656cddd50018d562d2df87c4698783898732914
[media] si2168: return error if set_frontend is called with invalid parameters

This patch should is based on Antti's silabs branch.

According to dvb-frontend.h set_frontend may be called with bandwidth_hz set to 0 if automatic bandwidth is required. Si2168 does not support automatic bandwidth and does not declare FE_CAN_BANDWIDTH_AUTO in caps.

This patch will change the behaviour in a way that EINVAL is returned if bandwidth_hz is 0.

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/si2168.c