Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp290549imm; Tue, 18 Sep 2018 22:03:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaQ3Mkll2JnXYanrqAOGZDpaXa88sCgaJFUyvW3oUzZVaYm1E2M6mrVqiLo0LNGTR1VYYC/ X-Received: by 2002:a17:902:8b86:: with SMTP id ay6-v6mr32927700plb.25.1537333391022; Tue, 18 Sep 2018 22:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537333390; cv=none; d=google.com; s=arc-20160816; b=HRmY2VEPo4REW1xckmu+wbCUrEx/DDmQdpsRByrgZLBxizhmTDMKPFJkSSx9Wv5NMJ Bi0mubOneZAllWI4rV3lOgtCdaqSjw0oe/IQUGjWO0dyD9adsmiq9efYurMusaWxr3A4 LkHxBa/KT5fHqQlFsWat4DYSR9waJYvsPSNcCi3c9nLIeMsdluciFuiNea8MSFc0EDaR Uj1BkGtMgszu2Z0J7DzQybLUv1u1ebAIXw05dut2uj6NwJobg+tLjoL/6TCbQdsTPWsI gxlbINCSWuYzbTd72Dox+BOmwvihSKR4n+nYPnEDwWSjhlUTwchdViQKjxj9RKYnRFc1 7IfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aC1sM/PyfLRU56qHDRITJl1miWVqk57C8PDuU6uBn5s=; b=zEQw4lDfa1zDeYYvD52iDwLnKfZxZFh4J8bvSrFGVva3Me/pNwNNLdXfQ8/qYiuTvt oZSiuyczolK/flug2PYYO5xPBEdM3p6OZYjbBMe8blDgQVgyGpJPXWAfsioA9ZsoxnFe /Hv8KhuWjvQ1/peUPO9OONvaPdxtE9jH8Yvq6HMl8YOyMKk5AI/sF5bs80prwZHl6E8d iEdULXKUZZLFKuUjS99G13dYVnyxw5ACjmsm/vdqavtcZtHlU9M++k+kcH2B9VaJRi3a TuQFIUVU2KkDHqzB1dn/iAHlg4mDn8pplg+UNrEAUEvF4DoXDnvb/kALyO7pFgHfqJRQ nAqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ufEQgzW4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1-v6si21847177pfd.273.2018.09.18.22.02.56; Tue, 18 Sep 2018 22:03:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ufEQgzW4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730842AbeISKip (ORCPT + 99 others); Wed, 19 Sep 2018 06:38:45 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:54878 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbeISKio (ORCPT ); Wed, 19 Sep 2018 06:38:44 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8J52ZYA075016; Wed, 19 Sep 2018 00:02:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1537333355; bh=aC1sM/PyfLRU56qHDRITJl1miWVqk57C8PDuU6uBn5s=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ufEQgzW43u+gbWaw4aHDSmOxUK96m0P6p0X8LjAGSgKh1rT8xavqaBX/9fvaQT0/f Bj0dCvRfJDhhZjB3puvYWFKVAPCXrg0pF1G1ns/EdHn2KvFdnpZVLptG8SEVvAEv1I 9dDa2kWr4Tj3LR0I8q1L9xGWY0Xq8qSLilLXQ6Z0= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8J52YkQ025765; Wed, 19 Sep 2018 00:02:34 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 19 Sep 2018 00:02:35 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 19 Sep 2018 00:02:34 -0500 Received: from [172.24.191.45] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8J52WPO023343; Wed, 19 Sep 2018 00:02:32 -0500 Subject: Re: [PATCH 4/5] gpio: davinci: Remove unneeded GPIO macro To: "Andrew F. Davis" , Sekhar Nori , Kevin Hilman , Linus Walleij CC: , References: <20180831191326.25106-1-afd@ti.com> <20180831191326.25106-4-afd@ti.com> From: Keerthy Message-ID: <699a7da7-1a4f-427a-b89e-aa082f77102a@ti.com> Date: Wed, 19 Sep 2018 10:32:31 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180831191326.25106-4-afd@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 01 September 2018 12:43 AM, Andrew F. Davis wrote: > This macro does nothing and has only one user, remove it. Tested for gpio interrupts on k2g and da850-lcdk Tested-by: Keerthy Acked-by: Keerthy > > Signed-off-by: Andrew F. Davis > --- > arch/arm/mach-davinci/board-neuros-osd2.c | 8 ++++---- > include/linux/platform_data/gpio-davinci.h | 5 ----- > 2 files changed, 4 insertions(+), 9 deletions(-) > > diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c > index 353f9e5a1454..efdaa27241c5 100644 > --- a/arch/arm/mach-davinci/board-neuros-osd2.c > +++ b/arch/arm/mach-davinci/board-neuros-osd2.c > @@ -130,10 +130,10 @@ static struct platform_device davinci_fb_device = { > }; > > static const struct gpio_led ntosd2_leds[] = { > - { .name = "led1_green", .gpio = GPIO(10), }, > - { .name = "led1_red", .gpio = GPIO(11), }, > - { .name = "led2_green", .gpio = GPIO(12), }, > - { .name = "led2_red", .gpio = GPIO(13), }, > + { .name = "led1_green", .gpio = 10, }, > + { .name = "led1_red", .gpio = 11, }, > + { .name = "led2_green", .gpio = 12, }, > + { .name = "led2_red", .gpio = 13, }, > }; > > static struct gpio_led_platform_data ntosd2_leds_data = { > diff --git a/include/linux/platform_data/gpio-davinci.h b/include/linux/platform_data/gpio-davinci.h > index b8e4957e7568..47695b342883 100644 > --- a/include/linux/platform_data/gpio-davinci.h > +++ b/include/linux/platform_data/gpio-davinci.h > @@ -45,11 +45,6 @@ struct davinci_gpio_controller { > int irqs[MAX_INT_PER_BANK]; > }; > > -/* > - * basic gpio routines > - */ > -#define GPIO(X) (X) /* 0 <= X <= (DAVINCI_N_GPIO - 1) */ > - > /* Convert GPIO signal to GPIO pin number */ > #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio)) > >