From patchwork Thu Jun 22 07:51:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 106182 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2330327qgd; Thu, 22 Jun 2017 00:51:54 -0700 (PDT) X-Received: by 10.80.151.221 with SMTP id f29mr1543233edb.126.1498117914203; Thu, 22 Jun 2017 00:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498117914; cv=none; d=google.com; s=arc-20160816; b=F3TZAu9TpYeNw5P8QMNXF6qpfj2W+US5CY/VZIPep/jl+pYoeGra29LwwTXxpmW42w XA2pxBzHuPhb2yZedx+pQ2/pMBJY9CHHXoYMQbC+xfdwS7FsxG0GPCg7pMCILq0hgbmm DNmnls2HiLcUe2EdL2Y3yDtjGBX5k89k9gklx5mzR4jF4vTGZvOOLOk4O4G7hVX1V9PP jfelYiINDqmlagWZy3lwzckmbS/tPIxp2q1VOFi1odgAJlt3oxKYw4D1nPaagrOd6M8p mPjwxqHrs26yElNzwU+QYLM+OBA0mFkONjvzabyxCdqOVEHlCueiybiPItxfMDVj6Vlv ZsSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=OSNC75LbCbRGhyGTI39KDZ/ZxQzwmanRonC4o1wyusw=; b=GZexFDJo81qSIhV2eIv83t8rNwwd+A7BXCmh+/dE8Q1A+nrTgcI3qmcQVCHRPKOIIz yhvuwXgxLK/dgdvfQb1yWNEmapr8c3WcsJWjb4OwH2anaUdld4S8TkWP4PhKUGCUZ1Zu yXF7vojw3uuYhQX5xQd4HXYxaDqDMWIuwr7ndARlJI8qp2tSb719o/HuZr0DDD1rXYM2 7etyDExiBKA5Lcp2jB3YZ4BfLVgtHwPPL9CkDYW/h9V6ebGVrHyegg4M0/WNSdU+rRZm phTZKzM0xK/OVgObVrBboyYzQshnxWETmwGBNBPD8xeUq34Pe6lJq9iXNDDcdlPHlfBS zgVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=DUdCq/q4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id p63si1006638edb.192.2017.06.22.00.51.53; Thu, 22 Jun 2017 00:51:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=DUdCq/q4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id C537FC21C9E; Thu, 22 Jun 2017 07:51:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BCBCEC21C63; Thu, 22 Jun 2017 07:51:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 88EFFC21C63; Thu, 22 Jun 2017 07:51:46 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id 8CC9FC21C3E for ; Thu, 22 Jun 2017 07:51:45 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id v5M7pQKF024196; Thu, 22 Jun 2017 16:51:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v5M7pQKF024196 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1498117887; bh=WAkAAGiCrF6Q1+dz01A5EjZ5F0SdpRYhl63An1LUS0Q=; h=From:To:Cc:Subject:Date:From; b=DUdCq/q4F6P18SzlK7oS767E+TjpWbJhQS2i1oSMNTjxzqgMqD+w5o4/5K1e7voKg T/VhFPHBe+tPxr46QoxLigywWNaj/JCrG1FG0mWxhU8Y/14MSMS0Nf0CCbNdfTt6O7 I0EezdD0/EU9sEBGrqrTm/juJhc5zUzSIMDJmd+HkqOPL7ccxBb/CMTP2/ZzGLr7DN wyX4JeIhqwQUOy0J7tHzvs50JGbRBC1QYufGk86phNcuhZco6UebPXwSssAUrdcKa6 hEm29tFXly9U49i86KD6mdy9KtFJUWUZ4oCPqBRmGqyl1pCwJFTOm4h45lGhCNah3/ iqzR4/NaCKHaQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 22 Jun 2017 16:51:22 +0900 Message-Id: <1498117882-21695-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Jonas Karlman Subject: [U-Boot] [PATCH] i2c_eeprom: add static to i2c_eeprom_std_ops/probe X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" These are only used in drivers/mis/i2c_eeprom.c Signed-off-by: Masahiro Yamada Reviewed-by: Bin Meng Reviewed-by: Heiko Schocher Reviewed-by: Simon Glass --- drivers/misc/i2c_eeprom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index da6e2b05f730..a14e83225bcc 100644 --- a/drivers/misc/i2c_eeprom.c +++ b/drivers/misc/i2c_eeprom.c @@ -42,7 +42,7 @@ static int i2c_eeprom_std_write(struct udevice *dev, int offset, return -ENODEV; } -struct i2c_eeprom_ops i2c_eeprom_std_ops = { +static const struct i2c_eeprom_ops i2c_eeprom_std_ops = { .read = i2c_eeprom_std_read, .write = i2c_eeprom_std_write, }; @@ -59,7 +59,7 @@ static int i2c_eeprom_std_ofdata_to_platdata(struct udevice *dev) return 0; } -int i2c_eeprom_std_probe(struct udevice *dev) +static int i2c_eeprom_std_probe(struct udevice *dev) { return 0; }