[media] use IS_ENABLED() macro
This patch introduces the use of IS_ENABLED() macro. For example, replacing: #if defined(CONFIG_I2C) || (defined(CONFIG_I2C_MODULE) && defined(MODULE)) with: #if IS_ENABLED(CONFIG_I2C) All changes made by this patch respect the same replacement pattern. Reported-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Acked-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
此提交包含在:

提交者
Mauro Carvalho Chehab

父節點
ffe4db06fd
當前提交
7b34be71db
@@ -142,7 +142,7 @@ struct stb0899_config {
|
||||
int (*tuner_set_rfsiggain)(struct dvb_frontend *fe, u32 rf_gain);
|
||||
};
|
||||
|
||||
#if defined(CONFIG_DVB_STB0899) || (defined(CONFIG_DVB_STB0899_MODULE) && defined(MODULE))
|
||||
#if IS_ENABLED(CONFIG_DVB_STB0899)
|
||||
|
||||
extern struct dvb_frontend *stb0899_attach(struct stb0899_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
|
新增問題並參考
封鎖使用者