Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1281595

[RESEND PATCH v2 2/9] eeprom: at24: new flag in platform_data

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Bartosz Golaszewski <bgolaszewski@baylibre.com>
Newsgroups linux.kernel
Subject [RESEND PATCH v2 2/9] eeprom: at24: new flag in platform_data
Date Wed, 02 Dec 2015 11:30:01 +0100
Message-ID <qBcPD-5Tr-13@gated-at.bofh.it> (permalink)
References <qBcPD-5Tr-3@gated-at.bofh.it>
X-Original-To Wolfram Sang <wsa@the-dreams.de>
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=IVPN4u1ImbD6hxvRbP4naRj3IK4ORL5TFqUsO/0bsvgOmBKhTCo/+7kXzdIHjcJnil r3JY9UcEB5TvzQ5QcRE9w36PFD6GyU/Ti/o/rFoNhhFK2F/he00xweV+yT56OvKi25+3 oPhGFdC1W7lPm1kP1de5kAkhCFI7ZZCRhaerZpzIsyq4AYQTeT65qFycJsnNNNXipjm+ Ed6nlNyOxSvjBTM+lWN7mGhwSj/8E4gGmhNtYJc4XvIwY4n3SjV0z3o1w+Awq8g+OFIJ NCSMb4JOFtgRfKs90VaHZLNw3MpSAjg8RHgX0N0tTbKtynXyN1UWy3Dk3A+33AJHt+PG W4Ew==
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=O3QaOhjtkXijr3rSG076/UlFBpSkKDHgKoXZ7QFqelsv/s9szVeGoBGEC3DpM61qFO yKwNO+5yD0q+LEyu/T55c81TU8qQ8xbX7h/dwy6uwCzE7R8trgfP885FimZ/7uJt0XN/ WYDGLP9UZaAFjf7ZpjJbLDZnKy8kOHlyzp1pwt10axlXr1TrqYUvd+YQe8oRZbE8GGO1 ocKIiQFZamS0Sr/hg6YRjGLkWZngHEp1HQi1vmSSxnMQquSEhWmvSEWWO95okIDUlCqW PghhoTGy21vrbWsUhfZkeDFWpw6SbgVc/8YUApi/kWXx+TJnPss6FVxeCaNhU/EkLJzU tVVQ==
X-Gm-Message-State ALoCoQktMaB9YNVSCJGHdQmYrelx6b2UpI0HTdXExyQ9XtmNrskr4LLpnHdwLog4RveBrav4wDl7
X-Received by 10.28.15.194 with SMTP id 185mr4834835wmp.9.1449051936914; Wed, 02 Dec 2015 02:25:36 -0800 (PST)
X-Mailer git-send-email 2.1.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
X-Original-Cc linux-i2c <linux-i2c@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Bartosz Golaszewski <bgolaszewski@baylibre.com>
X-Original-Date Wed, 2 Dec 2015 11:25:19 +0100
X-Original-Message-ID <1449051926-21918-3-git-send-email-bgolaszewski@baylibre.com>
X-Original-References <1449051926-21918-1-git-send-email-bgolaszewski@baylibre.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1281595

Show key headers only | View raw


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 <bgolaszewski@baylibre.com>
---
 include/linux/platform_data/at24.h | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RESEND PATCH v2 0/9] eeprom: at24: at24cs series serial number read Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 9/9] eeprom: at24: readability tweaks Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 4/9] eeprom: at24: support reading of the serial number Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 2/9] eeprom: at24: new flag in platform_data Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 8/9] eeprom: at24: remove a reduntant if Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 1/9] eeprom: at24: platform_data: use BIT() macro Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 3/9] eeprom: at24: tie up an additional address for at24cs series Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 5/9] eeprom: at24: export the serial number through sysfs Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 6/9] eeprom: at24: improve the device_id table readability Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  [RESEND PATCH v2 7/9] eeprom: at24: add the at24cs series to the list of supported devices Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-02 11:30 +0100
  Re: [RESEND PATCH v2 0/9] eeprom: at24: at24cs series serial number  read Wolfram Sang <wsa@the-dreams.de> - 2015-12-11 13:10 +0100
    Re: [RESEND PATCH v2 0/9] eeprom: at24: at24cs series serial number read Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2015-12-11 15:00 +0100

csiph-web