Message ID | 1444660281-19150-3-git-send-email-bgolaszewski@baylibre.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDNONOHMUUCRBZEI56YAKGQEKOKCHBI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 8971322DB6 for <linaro@patches.linaro.org>; Mon, 12 Oct 2015 14:32:05 +0000 (UTC) Received: by lbbti1 with SMTP id ti1sf70733972lbb.3 for <linaro@patches.linaro.org>; Mon, 12 Oct 2015 07:32:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=TawSitXJP+tHrFAd56yRzs9DF2deXAPT6r97xSON87I=; b=AU/vF6ZXWL70sBzyMe0xGKGHfIRvPAG04gKU337qNJ8aMhR6ZQkgfzJsLdq2MTDksf WaShSi3dDuHh4uMSrs0xDgIp+KoLjnBE0/hoWiy2ce6QLdm7bv7Je7PButmsuomfldmD 7RqKsCpmXoemSQTbo7khNFssgvXb8uU3I43fql9VCQQjrVeNyPngjMBCeSxNIBoMzTZB MVjSGeFlrM7YP7NeRia8q5mC2PucOKi3nkULfJ8wPSuW7dGy4jXWh5OlVB04jWIOs7P5 8WuV7KUNH4396taX2MwSF5Clo8FFsaZ7MxpK6LIkeE3ITTal0I/SESTH1vvrzF4iUt5m DXlg== X-Gm-Message-State: ALoCoQl7BkZBwQsWPCM1my4r/r/54A3eQBLv4WRdN+EHRtbfqWg7xrpGDsDDkAF72ayMDL3fejyO X-Received: by 10.180.81.165 with SMTP id b5mr2958532wiy.1.1444660324464; Mon, 12 Oct 2015 07:32:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.23.155 with SMTP id 27ls551467lfx.49.gmail; Mon, 12 Oct 2015 07:32:04 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr12878132lbb.35.1444660324121; Mon, 12 Oct 2015 07:32:04 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id l129si11421122lfe.102.2015.10.12.07.32.03 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 07:32:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbk10 with SMTP id k10so32729370lbb.0 for <patchwork-forward@linaro.org>; Mon, 12 Oct 2015 07:32:03 -0700 (PDT) X-Received: by 10.25.153.145 with SMTP id b139mr6754871lfe.117.1444660323768; Mon, 12 Oct 2015 07:32:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1582943lbq; Mon, 12 Oct 2015 07:32:02 -0700 (PDT) X-Received: by 10.107.13.4 with SMTP id 4mr3613224ion.178.1444660321833; Mon, 12 Oct 2015 07:32:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si8515311igw.81.2015.10.12.07.32.01; Mon, 12 Oct 2015 07:32:01 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752353AbbJLObz (ORCPT <rfc822;vaibhav.hiremath@linaro.org> + 1 other); Mon, 12 Oct 2015 10:31:55 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36416 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752602AbbJLOby (ORCPT <rfc822; linux-i2c@vger.kernel.org>); Mon, 12 Oct 2015 10:31:54 -0400 Received: by wicgb1 with SMTP id gb1so151551063wic.1 for <linux-i2c@vger.kernel.org>; Mon, 12 Oct 2015 07:31:53 -0700 (PDT) X-Received: by 10.180.77.106 with SMTP id r10mr1354528wiw.84.1444660312887; Mon, 12 Oct 2015 07:31:52 -0700 (PDT) Received: from localhost.localdomain (LPoitiers-656-1-62-228.w90-63.abo.wanadoo.fr. [90.63.143.228]) by smtp.gmail.com with ESMTPSA id az6sm11102907wib.12.2015.10.12.07.31.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 07:31:52 -0700 (PDT) From: Bartosz Golaszewski <bgolaszewski@baylibre.com> To: Wolfram Sang <wsa@the-dreams.de> Cc: linux-i2c <linux-i2c@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Patrick Titiano <ptitiano@baylibre.com>, Bartosz Golaszewski <bgolaszewski@baylibre.com> Subject: [PATCH 2/9] eeprom: at24: new flag in platform_data Date: Mon, 12 Oct 2015 16:31:14 +0200 Message-Id: <1444660281-19150-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444660281-19150-1-git-send-email-bgolaszewski@baylibre.com> References: <1444660281-19150-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-i2c@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bgolaszewski@baylibre.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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;
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(+)