From patchwork Thu Mar 24 14:46:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 64388 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp699854lbc; Thu, 24 Mar 2016 07:52:24 -0700 (PDT) X-Received: by 10.98.9.219 with SMTP id 88mr13667212pfj.0.1458831144663; Thu, 24 Mar 2016 07:52:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si12713921pfj.107.2016.03.24.07.52.24; Thu, 24 Mar 2016 07:52:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757819AbcCXOwP (ORCPT + 1 other); Thu, 24 Mar 2016 10:52:15 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:33039 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543AbcCXOqX (ORCPT ); Thu, 24 Mar 2016 10:46:23 -0400 Received: by mail-wm0-f49.google.com with SMTP id l68so278049239wml.0 for ; Thu, 24 Mar 2016 07:46:22 -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=eYBxOsXN2xWmk+MN50I0OsLoH+pg7VKD/24T4IYbY3zSLyb8zUGbpsSTLhwkxpYv0c KQglibpkkBi3ijObPZ6YQAFxtqYxva/Ucc87q+ucVdfclSdnVjtTUXMFKbHC5E274GiA bbm/l+DIhthaWnH1axOZ7z7efm4w2p6PJNJAfcWXi2VqvpqGwFLa4qa4UviydNrsqNaR csgfdsyEGYxLlveS0Y2BtWqtiGQWXkaPV2yjGdE2XmGJxcG3dZmpSgh4yezB775EMwpu ESLFdh3jYKI/9sEG+pfm2U5v7g+q3PeJXa5ip7j+i2tXAxCBZCFuTYpiKhjZNowCh6S5 3m1A== 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=SOI/DFhzQTLvEVcHJLoBAVl1SBW1BvZZjf/unN9+9CTJYrLpHNjGNrKQBNGxDDD9zM qO8w97RhWVpe3V9B3GHSRb2J2UrH4+SI84wrxRh9AjxlQejLzKj6Tmg/at+XGgqz7PEG pzdYPuUNVxXBuMdkIsPQb7xQEKFyYjkNWdPmIV0jd9aHqNBtsdxzVbHqmP9cVH0T7pCv zNksZogjUJlnI5bDHLrFp2wg3YMEWZuCFH0Dp8Mgl0Eh2ReVfFzycnUlQuIonUye0VgD NhbiIS3haMrJkOOUUmsQY8PQkx6IqwQ+Fak+qDfSojQ3MgTYsqoaRTdUiezYD/PWZT1h bOmQ== X-Gm-Message-State: AD7BkJJCmiasdYQoxDwF5qKDEg7WFs9GOSyg1eJnSeYuoeDUudrhxgvOz3c+sW5WaKsl7OVc X-Received: by 10.28.45.132 with SMTP id t126mr10432681wmt.86.1458830781634; Thu, 24 Mar 2016 07:46:21 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k125sm27255752wmb.14.2016.03.24.07.46.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 07:46:21 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML Cc: Andrew Lunn , Bartosz Golaszewski Subject: [PATCH 11/13] eeprom: at24: add at24mac series flag Date: Thu, 24 Mar 2016 15:46:05 +0100 Message-Id: <1458830767-23816-12-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458830767-23816-1-git-send-email-bgolaszewski@baylibre.com> References: <1458830767-23816-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;