[media] tuners: use IS_ENABLED
Instead of checking everywhere there for 3 symbols, use instead IS_ENABLED macro. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
此提交包含在:
@@ -21,6 +21,7 @@
|
||||
#ifndef _FC0012_H_
|
||||
#define _FC0012_H_
|
||||
|
||||
#include <linux/kconfig.h>
|
||||
#include "dvb_frontend.h"
|
||||
#include "fc001x-common.h"
|
||||
|
||||
@@ -48,8 +49,7 @@ struct fc0012_config {
|
||||
bool clock_out;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_MEDIA_TUNER_FC0012) || \
|
||||
(defined(CONFIG_MEDIA_TUNER_FC0012_MODULE) && defined(MODULE))
|
||||
#if IS_ENABLED(CONFIG_MEDIA_TUNER_FC0012)
|
||||
extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
|
||||
struct i2c_adapter *i2c,
|
||||
const struct fc0012_config *cfg);
|
||||
|
新增問題並參考
封鎖使用者