From patchwork Sun May 29 21:53:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 68803 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1113399qge; Sun, 29 May 2016 14:55:41 -0700 (PDT) X-Received: by 10.98.67.138 with SMTP id l10mr41098136pfi.59.1464558941771; Sun, 29 May 2016 14:55:41 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si45777535par.183.2016.05.29.14.55.41; Sun, 29 May 2016 14:55:41 -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=@baylibre-com.20150623.gappssmtp.com; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932768AbcE2Vzb (ORCPT + 30 others); Sun, 29 May 2016 17:55:31 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33845 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932655AbcE2Vy1 (ORCPT ); Sun, 29 May 2016 17:54:27 -0400 Received: by mail-wm0-f54.google.com with SMTP id z87so12656793wmh.1 for ; Sun, 29 May 2016 14:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IY89Aif/uke49BlDypIzI+TexwJmB/VTwoalqvTi3x0=; b=c84Nu8V+Y4X7P93uHa2EY/TcQ6sdIFxrbawXF2WzEBwZgu0Wl5jHw/1owl8ipqK3Ku x+zwm/BaacFb6yhbelonKf3W5l7uTVPHsPCUa1zNCltsazVuZwdoWG1fQ77lu9F4moRG QvT5DmMfmThbNaGNWtwIRo33GS5fqmr15w1CyHsNv1jPM2YAGzDniHm9D1TUtzB7sCN2 OsD5rcScNFKvwS/Vu23i9nfsgxO9+tj/iqvpC4hQYIhQGZCaULf2hYwTbX2xoJBFsu+8 si2Xe3wuHzkIjGW3g9lc4BnQz4dNorMPmgC5Eo8lmKyXQ0G/4v0xxMp+EBYTVA6ud4A4 QIcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IY89Aif/uke49BlDypIzI+TexwJmB/VTwoalqvTi3x0=; b=fm3MLxorQvtz/U0+Zp7TH9z4rBy8bXTQSVh2OFBm7+lbPAsMHtMFxPSKoT50IdAcvV wawl48gTW+73PtOZ8knT/atP8h2dGryBwfEyfYShQlPqCvpbENtvww1idtHX2BZ1SX6s 5U9Dz4luojxa9c1LGfqrWnZBzDQom3R522vg/k/gfxYah1AYU9AlgoGZAkt6IF3+C5oR /p+/f7DzJJi4XSD84a7vGqmtRThmUHHuDXoSYQTdmf8rAyYn7KLfBsFBTymXUhTuRI/A 9rQlONep9AGbsYovYBwjbcjUnflk/QptD3y4Axt0yzsrYjyTf5cwPr5Aa3WTKb8ag4pC 17iA== X-Gm-Message-State: ALyK8tLvIDncsG8u5lI1awkYdwwgP7qwKfRHPdwgSnnlKilnor1mVOVGzOew1t4+Oj27u0vH X-Received: by 10.28.140.135 with SMTP id o129mr7513144wmd.69.1464558866023; Sun, 29 May 2016 14:54:26 -0700 (PDT) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id a128sm20490367wme.16.2016.05.29.14.54.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 May 2016 14:54:25 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [PATCH 12/14] eeprom: at24: platform_data: add at24mac series flag Date: Sun, 29 May 2016 23:53:50 +0200 Message-Id: <1464558832-2262-13-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464558832-2262-1-git-send-email-bgolaszewski@baylibre.com> References: <1464558832-2262-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As part of supporting the at24mac series add a new flag to the at24 platform data. When set, it indicates that this chip exposes the factory-programmed EUI-48 or EUI-64 address. Signed-off-by: Bartosz Golaszewski --- include/linux/platform_data/at24.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h index fe0507e..80e4239 100644 --- a/include/linux/platform_data/at24.h +++ b/include/linux/platform_data/at24.h @@ -49,6 +49,7 @@ struct at24_platform_data { #define AT24_FLAG_IRUGO BIT(5) /* sysfs-entry will be world-readable */ #define AT24_FLAG_TAKE8ADDR BIT(4) /* take always 8 addresses (24c00) */ #define AT24_FLAG_SERIAL BIT(3) /* factory-programmed serial number */ +#define AT24_FLAG_MAC BIT(2) /* factory-programmed mac address */ void (*setup)(struct nvmem_device *nvmem, void *context); void *context;