From patchwork Sat Jan 19 23:41:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Senna Tschudin X-Patchwork-Id: 2007591 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 69BFD3FE1F for ; Sat, 19 Jan 2013 23:42:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752322Ab3ASXmp (ORCPT ); Sat, 19 Jan 2013 18:42:45 -0500 Received: from mail-qa0-f49.google.com ([209.85.216.49]:63843 "EHLO mail-qa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752279Ab3ASXmp (ORCPT ); Sat, 19 Jan 2013 18:42:45 -0500 Received: by mail-qa0-f49.google.com with SMTP id r4so3903853qaq.1 for ; Sat, 19 Jan 2013 15:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=SqntUKJgxT6KA4FOEUzPN9yHUnn1ntW1EoD+6EZOKhE=; b=cyinsaOwghqXhcESjtgL+C9rVemLaMmGAoHLeo4/ZRKc5GW82lGEq5hn0ohzhMRoUZ 0g/cTjOM//qhhDHb6cIUsKNwkkZymwgt+pCr4/A2mcjwJKNyTkLgz/bSejYN1LXno0/5 OfnOQoIQBR1GBGAtpCG+wvmGLuN+jfnKEraKZxbrIr/aCvLRMdHxvFZT6k4VVsgIsyiC WHDs08mxa7WAyy7ZYzZ/lY+YH/LA9f2r3v5RgsOf9wGRBeKMu/joPwgEA4yGLb94EQdV T32BZvaaA4NcDsW5KgqFwPWrtOUOKGopSTg0N2bhGQOyexEc0EHt9wcr+dpzskKPBdtK VLfw== X-Received: by 10.49.121.38 with SMTP id lh6mr16370370qeb.7.1358638964279; Sat, 19 Jan 2013 15:42:44 -0800 (PST) Received: from ace.home.cabure.org (200-140-13-6.bsace705.dsl.brasiltelecom.net.br. [200.140.13.6]) by mx.google.com with ESMTPS id y1sm6058595qan.22.2013.01.19.15.42.41 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 19 Jan 2013 15:42:43 -0800 (PST) From: Peter Senna Tschudin To: hdegoede@redhat.com Cc: mchehab@redhat.com, linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, Peter Senna Tschudin Subject: [PATCH V2 17/24] usb/gspca/spca561.c: use IS_ENABLED() macro Date: Sat, 19 Jan 2013 21:41:24 -0200 Message-Id: <1358638891-4775-18-git-send-email-peter.senna@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1358638891-4775-1-git-send-email-peter.senna@gmail.com> References: <1358638891-4775-1-git-send-email-peter.senna@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 Signed-off-by: Peter Senna Tschudin --- Changes from V1: Updated subject drivers/media/usb/gspca/spca561.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/gspca/spca561.c b/drivers/media/usb/gspca/spca561.c index cfe71dd..d1db3d8 100644 --- a/drivers/media/usb/gspca/spca561.c +++ b/drivers/media/usb/gspca/spca561.c @@ -741,7 +741,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, return; } -#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) +#if IS_ENABLED(CONFIG_INPUT) if (data[0] & 0x20) { input_report_key(gspca_dev->input_dev, KEY_CAMERA, 1); input_sync(gspca_dev->input_dev); @@ -866,7 +866,7 @@ static const struct sd_desc sd_desc_12a = { .start = sd_start_12a, .stopN = sd_stopN, .pkt_scan = sd_pkt_scan, -#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) +#if IS_ENABLED(CONFIG_INPUT) .other_input = 1, #endif }; @@ -879,7 +879,7 @@ static const struct sd_desc sd_desc_72a = { .stopN = sd_stopN, .pkt_scan = sd_pkt_scan, .dq_callback = do_autogain, -#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) +#if IS_ENABLED(CONFIG_INPUT) .other_input = 1, #endif };