Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp752296imm; Fri, 31 Aug 2018 12:15:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnIAbUqiE3bCmogO3eAnxBnBV7gDbj0ryoIwjhXPcfeKBGHANKrHcHpw6ruPRH9LWzftXU X-Received: by 2002:a63:f206:: with SMTP id v6-v6mr15957348pgh.319.1535742907454; Fri, 31 Aug 2018 12:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535742907; cv=none; d=google.com; s=arc-20160816; b=03Dk46BZ/MQL6WyczVqxk4sIMwKo6e0avIR/wiSmdbqp4gI69HIsCCknhQ3YEooiK0 o8PQgyxdWEf+d6qyRmwzMpw7m7c8Bsoaa8Wcvmg/pvq0zBMBRMM6JcZnpJpJNP4w+Onk eXouO5k1r5tkHVSby7cEHZFDDgXGOHdyyFEycV/sDie9P8LscO+U+MEYuQTZ7+qBhKzp PdFCWmsToddU4Pmfr8+FgF9jw9tGdHWJtjwcB+Zu1v2IOLw7Xs+olwElBC+rCvWn5rd6 ksddhPLbaog8gI+idi4doYvKir6fDtpGIGeva0ngepD+6JEC/z6uq1IAeoORrz62xaR3 O2rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ZkkeEQKdMokBg3jCy1LR/KmEkzVJPteW4V3+j3tWlWM=; b=A1xzlL9gzGYOT+66MBNZvJQFMiS4/BeQlkCY+nT9QYAIciRoZWpCzv21dU3oLgiqUY +T3o7DWeinTUcCTM17fQC95kUqGKQC2vGSvfSUjOTfjq7RB76y08TOj7I0TCgKIVCZ2H 2EJZWyf6qqyu80oKt/kHmwnPlg/aIO+igSCLe4S6lz4/v2kYW1RjePwqOqPKnSLxnyG9 IvdKFFgFL36P7gFVHWgAF83pQ+GukL5/T4rljzb5wFx+45IVakFMo1E0qqKvWHpHthZf zNhfK9jGNNN7wAuEpewl+DD/y0tCyjd7Y6WxulPPmumpqH4lhVtNdKeov7uYNksmWdQ6 Xpfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NBsUdlZN; 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 o33-v6si10537357pld.180.2018.08.31.12.14.52; Fri, 31 Aug 2018 12:15:07 -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=NBsUdlZN; 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 S1727621AbeHaXWa (ORCPT + 99 others); Fri, 31 Aug 2018 19:22:30 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:38816 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727425AbeHaXWW (ORCPT ); Fri, 31 Aug 2018 19:22:22 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w7VJDUW4085373; Fri, 31 Aug 2018 14:13:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1535742810; bh=ZkkeEQKdMokBg3jCy1LR/KmEkzVJPteW4V3+j3tWlWM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NBsUdlZNe4Vev6jpKY5PzxNWqEvH1shItmi0AHq2S9iaN5rbgEK9lYj4ALZOfIqhf /H3rI9gR5D567A/L6WOitZb/LpJMV8lcEgePzaccxR5gBhNl3ZWeiprKTyADeCZhML UiRCWaxE8A4yPCbe3f3z3X8nnoeSTGJCWTNbavw4= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VJDUcK014487; Fri, 31 Aug 2018 14:13:30 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 31 Aug 2018 14:13:29 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 31 Aug 2018 14:13:29 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w7VJDTGG012951; Fri, 31 Aug 2018 14:13:29 -0500 Received: from localhost (uda0226330.dhcp.ti.com [172.22.167.21]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w7VJDTx13211; Fri, 31 Aug 2018 14:13:29 -0500 (CDT) From: "Andrew F. Davis" To: Sekhar Nori , Kevin Hilman , Keerthy , Linus Walleij CC: , , "Andrew F . Davis" Subject: [PATCH 4/5] gpio: davinci: Remove unneeded GPIO macro Date: Fri, 31 Aug 2018 14:13:25 -0500 Message-ID: <20180831191326.25106-4-afd@ti.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180831191326.25106-1-afd@ti.com> References: <20180831191326.25106-1-afd@ti.com> MIME-Version: 1.0 Content-Type: text/plain 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 This macro does nothing and has only one user, remove it. 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)) -- 2.18.0