From patchwork Tue Oct 27 11:43:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 55598 Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1740363lbq; Tue, 27 Oct 2015 04:46:36 -0700 (PDT) X-Received: by 10.66.246.225 with SMTP id xz1mr27252398pac.60.1445946396413; Tue, 27 Oct 2015 04:46:36 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si61318701pbu.132.2015.10.27.04.46.36; Tue, 27 Oct 2015 04:46:36 -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; 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; 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 S1754321AbbJ0Lqf (ORCPT + 1 other); Tue, 27 Oct 2015 07:46:35 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:38562 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753600AbbJ0LoM (ORCPT ); Tue, 27 Oct 2015 07:44:12 -0400 Received: by wicll6 with SMTP id ll6so156093735wic.1 for ; Tue, 27 Oct 2015 04:44:11 -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=rwTDo7nxbxSu2VEgYJO+HcSQTrqIS0XzBEWDo0kPYCk=; b=MaXQvjybAwjBjQdAXstHH6zloVnRik0DLB0QMws+7a6F0cPULeiSpOKARI2Dczsq+7 BMeMG7B3C3kNI45UkHvvl+k+AVNiWCyanaHqERLJ8hZrqFlY0g1M2eiVJfGWEp+1iiZS r3JPr6yaHx/7lOmBldTUVFZSv8hsdOvWtLLWz5f0lI5U2BE42qtfwwzxcXmwdm8n4LD/ xcOe9NXq0LPvTwa6psoZjwiEISq3sgef7XAZgVx0Gqt1Swq6Ivb/UAv7t86rEq6OUyys hLbxMPYCeYymTt8myHAGCWa8UWqiOCHvd78EMcOLuY7enw3oUJczypEoSit7kaZJhAHW E55g== 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=Tui0yNyuOJ00vGuq5QQ8NddDNaFCcrVRWRRg/cl2n0PFJvJhqVXK5S7YmtEuY+/w3H ICIWugYryt//KBIGaM/JXyNMqj5QoyvfxUIyXMjh1cSqbKyYQKuMaR9NGqv1mUvW1/si G0jhBfA8jUB+2Klg7kIEeHt5/HkeyfwlROpBbU2TLpLAUqCx2i6t9nJSGBX1rvN0vsk7 VmuMYwHlkPEun51YOkjDHDyEAqpFqRGSQClBZ6dsW0Wmi/Ww7F7Qj5yfusSFbKkRrGqo ykb2vIcQN1Bhgn5LlnkIZahblzJcw68yiciUaaOt1MDggQo7uFYoHIcIC9lqVW0Z7fLN OlAQ== X-Gm-Message-State: ALoCoQlC2z2rVO6qwCGmh4USUTCU/zotD72qz0x3gO1EjXEkDJBJBpPPnFVLodXyPY7BT28vceFR X-Received: by 10.180.36.15 with SMTP id m15mr24716027wij.90.1445946251662; Tue, 27 Oct 2015 04:44:11 -0700 (PDT) Received: from localhost.localdomain (cag06-6-78-235-100-105.fbx.proxad.net. [78.235.100.105]) by smtp.gmail.com with ESMTPSA id gd11sm17451281wic.20.2015.10.27.04.44.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Oct 2015 04:44:11 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [PATCH v2 2/9] eeprom: at24: new flag in platform_data Date: Tue, 27 Oct 2015 12:43:46 +0100 Message-Id: <1445946233-6071-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445946233-6071-1-git-send-email-bgolaszewski@baylibre.com> References: <1445946233-6071-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 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-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 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;