Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] lnbh25: Fix lnbh25_attach() function return type

If CONFIG_DVB_LNBH25 is disabled, a stub static inline function is
defined that just prints a warning about the driver being disabled
but the function return type was wrong which caused a build error.

Fixes: e025273b86fb ("[media] lnbh25: LNBH25 SEC controller driver")

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>

authored by

Javier Martinez Canillas and committed by
Mauro Carvalho Chehab
a9c4e5cf ebdd4b7e

+1 -1
+1 -1
drivers/media/dvb-frontends/lnbh25.h
··· 43 43 struct lnbh25_config *cfg, 44 44 struct i2c_adapter *i2c); 45 45 #else 46 - static inline dvb_frontend *lnbh25_attach( 46 + static inline struct dvb_frontend *lnbh25_attach( 47 47 struct dvb_frontend *fe, 48 48 struct lnbh25_config *cfg, 49 49 struct i2c_adapter *i2c)