From patchwork Wed Dec 2 10:25:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 57552 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2773207lbb; Wed, 2 Dec 2015 02:28:06 -0800 (PST) X-Received: by 10.98.13.195 with SMTP id 64mr3425141pfn.147.1449052086603; Wed, 02 Dec 2015 02:28:06 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ti16si3804640pac.192.2015.12.02.02.28.06; Wed, 02 Dec 2015 02:28:06 -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 S1757873AbbLBK17 (ORCPT + 28 others); Wed, 2 Dec 2015 05:27:59 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37412 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753976AbbLBKZi (ORCPT ); Wed, 2 Dec 2015 05:25:38 -0500 Received: by wmww144 with SMTP id w144so50309797wmw.0 for ; Wed, 02 Dec 2015 02:25:37 -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=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) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id bg10sm2077707wjb.46.2015.12.02.02.25.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Dec 2015 02:25:36 -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: Wed, 2 Dec 2015 11:25:19 +0100 Message-Id: <1449051926-21918-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449051926-21918-1-git-send-email-bgolaszewski@baylibre.com> References: <1449051926-21918-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;