From patchwork Sat Jan 19 23:41:08 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: 2007441 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 B41CC3FE81 for ; Sat, 19 Jan 2013 23:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751445Ab3ASXlz (ORCPT ); Sat, 19 Jan 2013 18:41:55 -0500 Received: from mail-qa0-f49.google.com ([209.85.216.49]:34211 "EHLO mail-qa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751152Ab3ASXly (ORCPT ); Sat, 19 Jan 2013 18:41:54 -0500 Received: by mail-qa0-f49.google.com with SMTP id r4so3903622qaq.1 for ; Sat, 19 Jan 2013 15:41:53 -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=B94au2UBwmC3PUdhL78e0OIgUIQFBKPOUCppbKIza0U=; b=DT6SPW1EmfKLV+9GmirvG+zKb4A0lY1GedXq74EHYXKs/Ns7/g7CL0ucWUNXZfcQUF Abdsn+UBi/2JP3CvqdBg8r5bnxU7CRxAUFXFvtBItRPuz0141vPqC9ZPy1qNc6AYGkx4 wHLiQ2glgva97g1AKEC+QvYSfffLIhotfKpJfNL/11Pnc1hiV9+WTziyipihHYfn0wIH hm8x0riuAplqvRNlXkyUzsYzyuHP5vAJub2JoFvt1yuR3vDPjjG6xBTKA3DJXMi43qbq dqAUOc2EtqRRyi1pvQ7A5Ej0wWeT0ykCOpzaLWvb+2s58lIKdSir8UYz33xFqyzScOt0 ZCtg== X-Received: by 10.49.74.73 with SMTP id r9mr16276224qev.44.1358638913336; Sat, 19 Jan 2013 15:41:53 -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.41.50 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 19 Jan 2013 15:41:52 -0800 (PST) From: Peter Senna Tschudin To: mchehab@redhat.com Cc: hans.verkuil@cisco.com, jrnieder@gmail.com, peter.senna@gmail.com, emilgoode@gmail.com, linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH V2 01/24] pci/cx88/cx88.h: use IS_ENABLED() macro Date: Sat, 19 Jan 2013 21:41:08 -0200 Message-Id: <1358638891-4775-2-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_VIDEO_CX88_DVB) || \ defined(CONFIG_VIDEO_CX88_DVB_MODULE) with: #if IS_ENABLED(CONFIG_VIDEO_CX88_DVB) This change was made for: CONFIG_VIDEO_CX88_DVB, CONFIG_VIDEO_CX88_BLACKBIRD, CONFIG_VIDEO_CX88_VP3054 Reported-by: Mauro Carvalho Chehab Signed-off-by: Peter Senna Tschudin --- Changes from V1: Updated subject drivers/media/pci/cx88/cx88.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/media/pci/cx88/cx88.h b/drivers/media/pci/cx88/cx88.h index ba0dba4..feff53c 100644 --- a/drivers/media/pci/cx88/cx88.h +++ b/drivers/media/pci/cx88/cx88.h @@ -363,7 +363,7 @@ struct cx88_core { unsigned int tuner_formats; /* config info -- dvb */ -#if defined(CONFIG_VIDEO_CX88_DVB) || defined(CONFIG_VIDEO_CX88_DVB_MODULE) +#if IS_ENABLED(CONFIG_VIDEO_CX88_DVB) int (*prev_set_voltage)(struct dvb_frontend *fe, fe_sec_voltage_t voltage); #endif void (*gate_ctrl)(struct cx88_core *core, int open); @@ -562,8 +562,7 @@ struct cx8802_dev { /* for blackbird only */ struct list_head devlist; -#if defined(CONFIG_VIDEO_CX88_BLACKBIRD) || \ - defined(CONFIG_VIDEO_CX88_BLACKBIRD_MODULE) +#if IS_ENABLED(CONFIG_VIDEO_CX88_BLACKBIRD) struct video_device *mpeg_dev; u32 mailbox; int width; @@ -574,13 +573,12 @@ struct cx8802_dev { struct cx2341x_handler cxhdl; #endif -#if defined(CONFIG_VIDEO_CX88_DVB) || defined(CONFIG_VIDEO_CX88_DVB_MODULE) +#if IS_ENABLED(CONFIG_VIDEO_CX88_DVB) /* for dvb only */ struct videobuf_dvb_frontends frontends; #endif -#if defined(CONFIG_VIDEO_CX88_VP3054) || \ - defined(CONFIG_VIDEO_CX88_VP3054_MODULE) +#if IS_ENABLED(CONFIG_VIDEO_CX88_VP3054) /* For VP3045 secondary I2C bus support */ struct vp3054_i2c_state *vp3054; #endif