mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 21:14:07 +08:00
20eb13a77e
Fix a series of warnings when compiled with W=1: drivers/media/tuners/mt2063.c: In function 'mt2063_setreg': drivers/media/tuners/mt2063.c:290:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] ... drivers/media/tuners/mt2063.c:2013:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] drivers/media/tuners/mt2063.c:2271:14: warning: no previous prototype for 'tuner_MT2063_SoftwareShutdown' [-Wmissing-prototypes] drivers/media/tuners/mt2063.c:2286:14: warning: no previous prototype for 'tuner_MT2063_ClearPowerMaskBits' [-Wmissing-prototypes] Several of those warnings are real bugs: the error status code used to be unsigned, but they're assigned to negative error codes. Fix it by using unsigned int. While here, comment the two power management functions, while we don't add a code there to properly handle tuner suspend/resume. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
29 lines
662 B
C
29 lines
662 B
C
#ifndef __MT2063_H__
|
|
#define __MT2063_H__
|
|
|
|
#include "dvb_frontend.h"
|
|
|
|
struct mt2063_config {
|
|
u8 tuner_address;
|
|
u32 refclock;
|
|
};
|
|
|
|
#if defined(CONFIG_MEDIA_TUNER_MT2063) || (defined(CONFIG_MEDIA_TUNER_MT2063_MODULE) && defined(MODULE))
|
|
struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
|
|
struct mt2063_config *config,
|
|
struct i2c_adapter *i2c);
|
|
|
|
#else
|
|
|
|
static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
|
|
struct mt2063_config *config,
|
|
struct i2c_adapter *i2c)
|
|
{
|
|
printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
|
|
return NULL;
|
|
}
|
|
|
|
#endif /* CONFIG_DVB_MT2063 */
|
|
|
|
#endif /* __MT2063_H__ */
|