From patchwork Wed Aug 6 17:53:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Krause X-Patchwork-Id: 4687731 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D8F87C0338 for ; Wed, 6 Aug 2014 17:53:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06FA320121 for ; Wed, 6 Aug 2014 17:53:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C90020120 for ; Wed, 6 Aug 2014 17:53:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753805AbaHFRxL (ORCPT ); Wed, 6 Aug 2014 13:53:11 -0400 Received: from mail-yk0-f194.google.com ([209.85.160.194]:52540 "EHLO mail-yk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753378AbaHFRxL (ORCPT ); Wed, 6 Aug 2014 13:53:11 -0400 Received: by mail-yk0-f194.google.com with SMTP id q200so486138ykb.5 for ; Wed, 06 Aug 2014 10:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=zgahJZoV4prFXoPcjydcBDc0C8DBsmbX1DkVl45Y3ak=; b=P2Z15YpgeMl2rb+K09C9JQ6zqQyQxWGl+AG786o0fZGZf2kAmduSTX1BtyhoGETcGb wjoAz3r27OTV8IPit8T8aO3dwsmpJy8nV8ZlXxkU1ES8BQg2JO2WXgpbE2Ych3JAlA0+ BUVQMT0xSROJV/I2kFAj+79me+xv/guQ9DhijVn1M5vsijpV0yTAx/OOqAp/Stx12oVX eEkTUfrSHe09i/6TvdxeweWaNvT8mcq3BYSgJQA6IL6lUQ5lRLK880ngTyYkoHpQs8G0 BMyf5qg2baYs2vrgLvOZw+Y5gSixnu18Ekl2BGH7V/heBSLdSypghDvT6vquERdP5kEE 3nGg== X-Received: by 10.236.189.97 with SMTP id b61mr19248587yhn.135.1407347588207; Wed, 06 Aug 2014 10:53:08 -0700 (PDT) Received: from localhost.localdomain (108-232-152-155.lightspeed.tukrga.sbcglobal.net. [108.232.152.155]) by mx.google.com with ESMTPSA id q5sm2885566yhk.8.2014.08.06.10.53.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Aug 2014 10:53:07 -0700 (PDT) From: Nick Krause To: Richard Weinberger , Mark Brown , linux-spi@vger.kernel.org (open list:SPI SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/1] spi: Remove unused definitions Date: Wed, 6 Aug 2014 13:53:17 -0400 Message-Id: <1407347597-2168-1-git-send-email-xerofoiffy@gmail.com> X-Mailer: git-send-email 2.0.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unused definition which cause the following warnings drivers/spi/spi-omap-100k.c:73:0: warning: "WRITE" redefined [enabled by default] include/linux/fs.h:193:0: note: this is the location of the previous definition drivers/spi/spi-omap-100k.c:74:0: warning: "READ" redefined [enabled by default] include/linux/fs.h:192:0: note: this is the location of the previous definition Signed-off-by: Nick Krause Acked-by: Geert Uytterhoeven --- drivers/spi/spi-omap-100k.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c index 5e91858..fb52276 100644 --- a/drivers/spi/spi-omap-100k.c +++ b/drivers/spi/spi-omap-100k.c @@ -70,10 +70,6 @@ #define SPI_STATUS_WE (1UL << 1) #define SPI_STATUS_RD (1UL << 0) -#define WRITE 0 -#define READ 1 - - /* use PIO for small transfers, avoiding DMA setup/teardown overhead and * cache operations; better heuristics consider wordsize and bitrate. */