[media] usb/gspca/ov519.c: use IS_ENABLED() macro
replace: #if defined(CONFIG_INPUT) || \ defined(CONFIG_INPUT_MODULE) with: #if IS_ENABLED(CONFIG_INPUT) This change was made for: CONFIG_INPUT Reported-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
9bc0446331
commit
c4ea799a2b
|
@ -4238,7 +4238,7 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
|
||||||
if (sd->bridge == BRIDGE_W9968CF)
|
if (sd->bridge == BRIDGE_W9968CF)
|
||||||
w9968cf_stop0(sd);
|
w9968cf_stop0(sd);
|
||||||
|
|
||||||
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
|
#if IS_ENABLED(CONFIG_INPUT)
|
||||||
/* If the last button state is pressed, release it now! */
|
/* If the last button state is pressed, release it now! */
|
||||||
if (sd->snapshot_pressed) {
|
if (sd->snapshot_pressed) {
|
||||||
input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0);
|
input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0);
|
||||||
|
@ -4255,7 +4255,7 @@ static void ov51x_handle_button(struct gspca_dev *gspca_dev, u8 state)
|
||||||
struct sd *sd = (struct sd *) gspca_dev;
|
struct sd *sd = (struct sd *) gspca_dev;
|
||||||
|
|
||||||
if (sd->snapshot_pressed != state) {
|
if (sd->snapshot_pressed != state) {
|
||||||
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
|
#if IS_ENABLED(CONFIG_INPUT)
|
||||||
input_report_key(gspca_dev->input_dev, KEY_CAMERA, state);
|
input_report_key(gspca_dev->input_dev, KEY_CAMERA, state);
|
||||||
input_sync(gspca_dev->input_dev);
|
input_sync(gspca_dev->input_dev);
|
||||||
#endif
|
#endif
|
||||||
|
@ -4924,7 +4924,7 @@ static const struct sd_desc sd_desc = {
|
||||||
.dq_callback = sd_reset_snapshot,
|
.dq_callback = sd_reset_snapshot,
|
||||||
.get_jcomp = sd_get_jcomp,
|
.get_jcomp = sd_get_jcomp,
|
||||||
.set_jcomp = sd_set_jcomp,
|
.set_jcomp = sd_set_jcomp,
|
||||||
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
|
#if IS_ENABLED(CONFIG_INPUT)
|
||||||
.other_input = 1,
|
.other_input = 1,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue