From patchwork Tue Nov 17 09:52:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 56767 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1830172lbb; Tue, 17 Nov 2015 01:55:49 -0800 (PST) X-Received: by 10.68.179.69 with SMTP id de5mr60939695pbc.113.1447754149358; Tue, 17 Nov 2015 01:55:49 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sf2si57080683pbc.162.2015.11.17.01.55.49; Tue, 17 Nov 2015 01:55:49 -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 S1753634AbbKQJzm (ORCPT + 28 others); Tue, 17 Nov 2015 04:55:42 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36414 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbbKQJwi (ORCPT ); Tue, 17 Nov 2015 04:52:38 -0500 Received: by wmww144 with SMTP id w144so145900565wmw.1 for ; Tue, 17 Nov 2015 01:52: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=coamJ0Dt8OvkEwe1bGiouAc8wEcjt7YCaEHww6CM5Y8j7z3XMmQ73RYZkktEt1y6Cs KE/zZOOsDxAf5vBAUCn0Ptj8nrM+3o0fFrJjsZfUwnSQN+9B7rLYfC0I/4ZYdfFtyuzG bJIdBv8gBkyX2lnmt+hEsMMbe+SiCN1yt+3LaVSo7CkuxWRnhJK9QLFhZkjV9s3wLAR2 f1Jv4TGngruZlwzg1mtj7nMV9JjlKBw/cboTtz1NVpio6Y9gKG6UowDnJHdNeTi3Rs82 ooxXB2e+h3oGbg/8SvL5PpMyBySLDJSKDrdiU5LdMSQo2dfe0dAl4VuQaESSbmFjHjN9 Mqwg== 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=XWJZAexjqUnwtug98EhxKdD5FtV7NtUgMC6P8Up62WadKK0+rNEozfbeXHvdV1kNv9 qTy4pilHVMfBBFoyW6NxxeygZdknhV6xjgvPcVM+MwcPV9AjU8ptAt83YW/TKXLjsJbf eju0poKTyfedwPORf7whdaRQ88iXk4IkSL7zIG+aeU12tK7hkG/CAzsUPAtqLsBuEegg pKy5ndaKjEW3pOVVzY3BxmqnnxUFX6VJjbXnvGTcQyWpQ26NgGjyh3a62ZE+KkzWOrHk A3Wig4H1d4PfnAGITz9InvjLxZipQxRJuAskF5CtREt/9ex2Zk+g3fksD0jqmLe4HHBb vxPw== X-Gm-Message-State: ALoCoQmIFDexc+LKPggPplUmAIZbrqPSCVyi+A4BunR1QvLMjTv1tyA4L3/2L+ik63lv9VIWm6is X-Received: by 10.28.217.6 with SMTP id q6mr1620783wmg.5.1447753957040; Tue, 17 Nov 2015 01:52:37 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id bk7sm38993546wjb.25.2015.11.17.01.52.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:52: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: Tue, 17 Nov 2015 10:52:23 +0100 Message-Id: <1447753950-17213-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447753950-17213-1-git-send-email-bgolaszewski@baylibre.com> References: <1447753950-17213-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;