From patchwork Tue Nov 24 09:44:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 57217 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1975844lbb; Tue, 24 Nov 2015 01:52:21 -0800 (PST) X-Received: by 10.66.240.97 with SMTP id vz1mr41399559pac.29.1448358741031; Tue, 24 Nov 2015 01:52:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r73si25690619pfa.169.2015.11.24.01.52.20; Tue, 24 Nov 2015 01:52:20 -0800 (PST) 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; 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; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754299AbbKXJwO (ORCPT + 28 others); Tue, 24 Nov 2015 04:52:14 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:36191 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753982AbbKXJov (ORCPT ); Tue, 24 Nov 2015 04:44:51 -0500 Received: by wmww144 with SMTP id w144so130416979wmw.1 for ; Tue, 24 Nov 2015 01:44:50 -0800 (PST) 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=rwTDo7nxbxSu2VEgYJO+HcSQTrqIS0XzBEWDo0kPYCk=; b=S/PCc+VP/JBy51me1HP8ZczxGDLbxaZzbYlYiQh71iN1o4hyomfwMEX6+beAIShfbT 2QeCDt97+52OD7DFdpNy6q02YJDMnMNsGaL8MqolxxMcWMYQbHDmDKQdDL/CDOw9Le0/ G7/shRk9vERqqmq9KYlgpMrJtME1aUF2XqMImjJGKuILChw3YP7Pn/IWpeEf5NM4syeo GLnNoOOf5uPUl0xNn7ChNwMwvPxdXB7ysmc0b06kHQsaL/ecrZ0tFA/HENVCa5FMCFf8 cAJyCzxkGofMTl+LRIg1Tdbed+CuSEuPxEIznqXWzjuniep0QZ+RgqXEpTAuZ4855nmC BJug== 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=rwTDo7nxbxSu2VEgYJO+HcSQTrqIS0XzBEWDo0kPYCk=; b=Rz+noZjTlqLAWsPGVPZ9mSBYXx7OvjxdOwgVqwi3Yycn2DE1f1fmdiLZqD2petttCC e6C3OIhGD6tTYncoC/m9QonyP2olGhQ3+EdJftkDJgdIUacAS8skmZmhAhp0RRKA2Ba4 VY7jHtHczmkV+nnjjdbanBdmbVR15zjsr05QaU8o3HBCXcCuJk+uNGmkql/4B7Lw4rDt hUpNjHFHTL7qt4E0ZgtF6JQmSSpfT+L/aBYYzI38jf7c+vzA3g1eOaF/dIZU1Z+XN5Kv hguE2RWx3g+Q0VAxrOrYy2pz2Tul5UqAWBiHUcKa3vH2l1tUyn40XRa6c+wQ/q/Nq1lJ 1D1g== X-Gm-Message-State: ALoCoQltyG37GnzrMRzp7aNwDZ9RoFKQS1z6BdwkGwVrIWyAGU2cBfeQEVHeTVROj5v1aF6QTltK X-Received: by 10.28.195.138 with SMTP id t132mr22665633wmf.86.1448358289965; Tue, 24 Nov 2015 01:44:49 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id cl5sm17353156wjc.29.2015.11.24.01.44.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Nov 2015 01:44:49 -0800 (PST) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [RESEND PATCH v2 2/9] eeprom: at24: new flag in platform_data Date: Tue, 24 Nov 2015 10:44:38 +0100 Message-Id: <1448358285-25016-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448358285-25016-1-git-send-email-bgolaszewski@baylibre.com> References: <1448358285-25016-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 In preparation for supporting the at24cs EEPROM series add a new flag to platform data. When set, it should tell the driver that the chip has an additional read-only memory area that holds a factory pre-programmed serial number. Signed-off-by: Bartosz Golaszewski --- include/linux/platform_data/at24.h | 1 + 1 file changed, 1 insertion(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h index 8d90f52..5686f91 100644 --- a/include/linux/platform_data/at24.h +++ b/include/linux/platform_data/at24.h @@ -47,6 +47,7 @@ struct at24_platform_data { #define AT24_FLAG_READONLY BIT(6) /* sysfs-entry will be read-only */ #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 */ void (*setup)(struct memory_accessor *, void *context); void *context;