From patchwork Mon Apr 11 18:57:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 65562 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1518941qge; Mon, 11 Apr 2016 11:58:44 -0700 (PDT) X-Received: by 10.66.255.65 with SMTP id ao1mr35082706pad.38.1460401124051; Mon, 11 Apr 2016 11:58:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u67si4940257pfa.243.2016.04.11.11.58.43; Mon, 11 Apr 2016 11:58:44 -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 S1755352AbcDKS6c (ORCPT + 29 others); Mon, 11 Apr 2016 14:58:32 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:35296 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbcDKS6H (ORCPT ); Mon, 11 Apr 2016 14:58:07 -0400 Received: by mail-pf0-f171.google.com with SMTP id n1so129144439pfn.2 for ; Mon, 11 Apr 2016 11:58:02 -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=7Idsazyp42sIAo7sZuXU9u7rU9GeJ30W3UGspLMihBk=; b=g6Ouxo7tb4Yat7cJgSWjOZPT9NyQuXVXXtGmMIMI0P7suyOx+8v88JPTOFAAKnYvL2 HE0jaeIH2TaBI3xg1c/W4qqx++42wFsiR1Fvcv9dKfGcdEDlDRQiGOLIUelM5IgTwzcz 0xnnEekdr4ApWaF67hIMPu+NAHo6sTjSexGrZZgRi5y5cH1KAttHAaRo7+bhD18OZRf0 yhinuFfi5EXN1F6rghWxRxrMx8Hp7MwcXv2yApPT90g/jVI6mRKZTBXry9pAnMVWY8RM jFilFyRZqiwA+zeaoNSq6qkLGxQdkpIE2yQCTcUmypzUwj2VrrGluSg+EoQuXzK93PPc zFxg== 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=7Idsazyp42sIAo7sZuXU9u7rU9GeJ30W3UGspLMihBk=; b=MiqA04e9HNOrFZqTuYACZVkFqSa0Qtj38fZSg5FbFn/Lpt1xuyAoYtqwotQCmm+2KB mY0XwAk46tK4HC+N+SNdtxUlTpyXHGWPaGpgKYCe5AY1r2FOR4gfdI41CkPojneWws2y iTCCnOzM1DNtGwrD1+IssDSJkeKQvl6wTcMAqD2TuSE8AUrGXYLV9IB2S2FEqDQ8E+9m qeKYRYc4QuIKHoXLI0JMT8I6THf9CNibn+e+9InkZbOzCp3bFOaY/GS8l6Pp6P3ZjSxj I+BkGTALfS9HTleIG/yisFw0vn+4h1dmHH76WGH7XHMC7n/6n5NUyb0xTIjf5EigAAJf ORJA== X-Gm-Message-State: AD7BkJIFmtlGgz2IHG7eP3K9GROL4GPjoT9oYkk9F341IQhstNhRHckJs4KzgxANTslevwXB X-Received: by 10.98.71.203 with SMTP id p72mr34878698pfi.165.1460401081833; Mon, 11 Apr 2016 11:58:01 -0700 (PDT) Received: from localhost.localdomain (cpe-172-248-200-249.socal.res.rr.com. [172.248.200.249]) by smtp.gmail.com with ESMTPSA id ke7sm22322404pad.44.2016.04.11.11.58.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Apr 2016 11:58:01 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , srinivas.kandagatla@linaro.org, maxime.ripard@free-electrons.com Cc: Andrew Lunn , Bartosz Golaszewski Subject: [RESEND PATCH v2 11/13] eeprom: at24: add at24mac series flag Date: Mon, 11 Apr 2016 11:57:27 -0700 Message-Id: <1460401049-25459-12-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1460401049-25459-1-git-send-email-bgolaszewski@baylibre.com> References: <1460401049-25459-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 5bc02fe..fa89605 100644 --- a/include/linux/platform_data/at24.h +++ b/include/linux/platform_data/at24.h @@ -48,6 +48,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;