From patchwork Mon Jun 6 08:48:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 69374 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1375822qgf; Mon, 6 Jun 2016 01:50:54 -0700 (PDT) X-Received: by 10.98.5.133 with SMTP id 127mr24288782pff.110.1465203054557; Mon, 06 Jun 2016 01:50:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z71si18254026pff.138.2016.06.06.01.50.53; Mon, 06 Jun 2016 01:50:54 -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 S1752536AbcFFIuj (ORCPT + 31 others); Mon, 6 Jun 2016 04:50:39 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:35762 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbcFFItU (ORCPT ); Mon, 6 Jun 2016 04:49:20 -0400 Received: by mail-wm0-f42.google.com with SMTP id c74so34718066wme.0 for ; Mon, 06 Jun 2016 01:49:20 -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=MzXFmKHcHkeNvIjCPdJdhRHEKNosdLoqCkSF3AvKb20=; b=Th6vXCXWMlX9TBo6e4xVwIfjXBgjnQawWGwNlk8ndCn/jwIan3yaoyzS3i7j6xSX8m w6y17SVBRI+1nUgHNVu0izU/E9dBylda+Q5rLOnDVsrv7HdU5jtYrnBnbe+6p4LVrEAN rk37G6kpYFDuuSQoulwSOfrtoJqdOgrbGKbL8XmNnBLTjklCXkU1emeBqThDMN6ViXCE j7t+oeSi0mRfP5JNiKajK66xdPD5M0gzGc7gkQkxjEgfblrHGFo86Cjt3ReFwZ3XxMS6 dxaOlku5Ei5+vgsUXCu5yTYzmBQOFJHEWNzhRcfsh1h0sOuRloY2ESI8zkG72tyEStun X8qA== 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=MzXFmKHcHkeNvIjCPdJdhRHEKNosdLoqCkSF3AvKb20=; b=DLG9dm1HgjHVtATOedyVnoGk4c9CW0BL3b2EkOgwQmgAuo1mG/e2AthY/wX98kWmRk 5lECyK31AHVRp77Ss2UOI/n/m5TveZC72TOizjeKq6UBRz8PZ9jM5T/U+YUbcjGMbKZj tTHcpE6Saw3sRdZf72Cp6IGwtoCTxqoHP6vttUTtTeAcc+8o7RCPS8i4sSJq/pynvIs/ vbmLlalD+c/5DNyjdADUAkZzhUg2d7G4wjmXLfu1WT4qMTcUIu6nxraiFXLAb0tf+Us1 8bfjZ7MkIhS3fq0JPu3YR5JLRJENG4ANnnowvg+kS5pm/Aonc4AQoEMwQpK3Hbv+Y/3h 9Khg== X-Gm-Message-State: ALyK8tKteUKpw4++m66tkj0kClwoiZQXr03aejtOq9s/1JFykUF2dHGCDJTvE3AT9lka3ogt X-Received: by 10.194.163.166 with SMTP id yj6mr1487672wjb.116.1465202959249; Mon, 06 Jun 2016 01:49:19 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id dd7sm19090384wjb.22.2016.06.06.01.49.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jun 2016 01:49:18 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [RESEND PATCH 12/14] eeprom: at24: platform_data: add at24mac series flag Date: Mon, 6 Jun 2016 10:48:54 +0200 Message-Id: <1465202936-16832-13-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465202936-16832-1-git-send-email-bgolaszewski@baylibre.com> References: <1465202936-16832-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 d595874..271a4e2 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;