From patchwork Thu Mar 24 14:46:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 64369 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp696755lbc; Thu, 24 Mar 2016 07:47:05 -0700 (PDT) X-Received: by 10.98.86.28 with SMTP id k28mr13403018pfb.43.1458830812745; Thu, 24 Mar 2016 07:46:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si12680626pat.65.2016.03.24.07.46.52; Thu, 24 Mar 2016 07:46:52 -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; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755936AbcCXOqg (ORCPT + 1 other); Thu, 24 Mar 2016 10:46:36 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:34522 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329AbcCXOqS (ORCPT ); Thu, 24 Mar 2016 10:46:18 -0400 Received: by mail-wm0-f46.google.com with SMTP id p65so277603857wmp.1 for ; Thu, 24 Mar 2016 07:46:18 -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=m6cpeWL8Wvodv0OSzjya5oR+TNYQBo5qmYkmM3ZQ+lY=; b=SUZAmVDXHCOf37uBG+uwq6h+RsZU7qjJzkSMb9yrMtCEiQ7sHxcpu7EXKVhKWw1IXQ p+C0Tyd5zxFxgOm1qBhk/AJA62qogwtg6FW2GkGd7s2R32yc0XLYZT6+SqB31fdTDzZF JtXcKtLHfaP/6TB+bqXTbT6wBPs6JyK6q5KLaCkYNabt3WAj87suQ/S2OEVA/PyPuuuu 2GO+43RxUgWzy9Cy6lZgyd9inEhGzZ+PGgbU6T8hIy4PPvdZG5URvi7cdHZVxWwmyva3 gAZ6MD17uofwF1dirtNGErd8tGsAEUK74Qzz0laTfqucY6v7fj+QaaMKSUEksGMijf5j MzmQ== 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=m6cpeWL8Wvodv0OSzjya5oR+TNYQBo5qmYkmM3ZQ+lY=; b=UDfbsMThnBeFJ1w3leHCHn+HEVSlHtuRgyW7MkGqXkvn8snYTKKem/30/gV+ND56ve VWp9oxyoNe7KJTsZ7JDtxml2wpYLx8RjEGbjCsTX/DPYd3t5KuY2TDPjFP8jvgoh64g9 MR0WE7C5+pH0L2v6hpOPybrn3Mg97njcLcN6bxrnGCrhUSk+ejiYVFOyvL3rjL2Zbsm7 woNl/Cm9+1195ncsBWhyJbneEmhCblNI2LmoLlDjsu2kV0eICp1tQw5NWu3jtm0Isbko unrkCpBpQ7OjjaoneiZ5IpfymujltVhucaGtbCzcZBQ+mM+lnnq5YPQdcbK9M7+DRiaL 2PIQ== X-Gm-Message-State: AD7BkJLFiSHAaPjOdin/f32/rUtzk+a8TaaJEaRyfpzzh/RRibJ55a697r0kmLWAwAgQli5R X-Received: by 10.194.121.34 with SMTP id lh2mr10343152wjb.145.1458830776974; Thu, 24 Mar 2016 07:46:16 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k125sm27255752wmb.14.2016.03.24.07.46.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 07:46:16 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML Cc: Andrew Lunn , Bartosz Golaszewski Subject: [PATCH 06/13] eeprom: at24: add serial number flag Date: Thu, 24 Mar 2016 15:46:00 +0100 Message-Id: <1458830767-23816-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458830767-23816-1-git-send-email-bgolaszewski@baylibre.com> References: <1458830767-23816-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.7.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 a543b93..5bc02fe 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 nvmem_device *nvmem, void *context); void *context;