From patchwork Sat Jan 19 16:33: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: 2007051 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 08EAD3FE1F for ; Sat, 19 Jan 2013 16:35:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752053Ab3ASQe5 (ORCPT ); Sat, 19 Jan 2013 11:34:57 -0500 Received: from mail-qa0-f47.google.com ([209.85.216.47]:34100 "EHLO mail-qa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040Ab3ASQe4 (ORCPT ); Sat, 19 Jan 2013 11:34:56 -0500 Received: by mail-qa0-f47.google.com with SMTP id a19so5942029qad.13 for ; Sat, 19 Jan 2013 08:34:55 -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=Vln1V8uueT7CP2OCce8wayKtTEfZ8+RFQAPqh88zpAs=; b=0rWqDHoehLfXGxScM3bYucfIP9vVIyr9SLx9ROYEMAuUeMCzgoLtb0OE1fhKhQ3p2X RJWefIEBbaG526Pqz5S6jBrWCmWD7KkFXI9Fzjs3mVlFkVbJqACk40Gw3RnHDhHe3sl4 Jc9ieRNTVK4+s8bdLrRL8l4f3E/zw7WtM+zAuqLZGBqdLCjfFPMU9qg/pt3BbKCHgaYf tgQccNE/LfBSgI46HBM2dlrzo3U09J6JkhUSmMlcNJ75h/JWo+bBGbc3/6f1GZzRvz7d +qblEhwiUlWvVCcCl32u1gSlQzLZu7jqg40F0Do0HSbjtbvrKqU2TAjpv+q/bTSbf68m m0dQ== X-Received: by 10.229.194.9 with SMTP id dw9mr3241464qcb.6.1358613295163; Sat, 19 Jan 2013 08:34:55 -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 f7sm5410451qap.13.2013.01.19.08.34.52 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 19 Jan 2013 08:34:54 -0800 (PST) From: Peter Senna Tschudin To: mchehab@redhat.com Cc: jarod@redhat.com, tralph@mythtv.org, peter.senna@gmail.com, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 22/24] use IS_ENABLED() macro Date: Sat, 19 Jan 2013 14:33:24 -0200 Message-Id: <1358613206-4274-21-git-send-email-peter.senna@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1358613206-4274-1-git-send-email-peter.senna@gmail.com> References: <1358613206-4274-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_I2C) || \ defined(CONFIG_I2C_MODULE) with: #if IS_ENABLED(CONFIG_I2C) This change was made for: CONFIG_I2C Reported-by: Mauro Carvalho Chehab Signed-off-by: Peter Senna Tschudin --- drivers/media/usb/hdpvr/hdpvr-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/hdpvr/hdpvr-core.c b/drivers/media/usb/hdpvr/hdpvr-core.c index 84dc26f..5c61935 100644 --- a/drivers/media/usb/hdpvr/hdpvr-core.c +++ b/drivers/media/usb/hdpvr/hdpvr-core.c @@ -391,7 +391,7 @@ static int hdpvr_probe(struct usb_interface *interface, goto error; } -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) +#if IS_ENABLED(CONFIG_I2C) retval = hdpvr_register_i2c_adapter(dev); if (retval < 0) { v4l2_err(&dev->v4l2_dev, "i2c adapter register failed\n"); @@ -419,7 +419,7 @@ static int hdpvr_probe(struct usb_interface *interface, return 0; reg_fail: -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) +#if IS_ENABLED(CONFIG_I2C) i2c_del_adapter(&dev->i2c_adapter); #endif error: @@ -451,7 +451,7 @@ static void hdpvr_disconnect(struct usb_interface *interface) mutex_lock(&dev->io_mutex); hdpvr_cancel_queue(dev); mutex_unlock(&dev->io_mutex); -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) +#if IS_ENABLED(CONFIG_I2C) i2c_del_adapter(&dev->i2c_adapter); #endif video_unregister_device(dev->video_dev);