From: Olli Salonen Date: Fri, 16 Jan 2015 12:35:19 +0000 (-0300) Subject: [media] si2168: return error if set_frontend is called with invalid parameters X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~131^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=683e98b6029155949d7373ba854283770b4a16ef;p=pandora-kernel.git [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 Reviewed-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed