From patchwork Sun May 29 21:53:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 68807 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1113647qge; Sun, 29 May 2016 14:56:47 -0700 (PDT) X-Received: by 10.98.92.71 with SMTP id q68mr41395437pfb.138.1464559007078; Sun, 29 May 2016 14:56:47 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17si45791716pag.9.2016.05.29.14.56.46; Sun, 29 May 2016 14:56:47 -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 S932585AbcE2V4f (ORCPT + 1 other); Sun, 29 May 2016 17:56:35 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35482 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932373AbcE2VyX (ORCPT ); Sun, 29 May 2016 17:54:23 -0400 Received: by mail-wm0-f51.google.com with SMTP id a136so61562088wme.0 for ; Sun, 29 May 2016 14:54:23 -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=GtTT8NGe6G3DkiP5Rm9Onpbp6zje1/L5iOPYrH8T6R8=; b=1YUwmdPNAH0MT8O/ZUBBY0T1iro55UWER/dHcGkYTu/a9z9kGjuuiuzO+fz88Yrc5l lKNyNdKZBD0QAG17PmGzKdroSL/VIAzOD+TwjUvDeT2KeLk98O1bkKiCYWhP6IXb0RLv UephLHxmXAqzO4yn/Zwcw+ixlAc4cu40ULoq6ur2YdJgBTIbBuUte0W6nCVJGOASGc+D LunCE824z45f3kgL7bNMng6lGYS/GK9lIar/4rPLiBcACwdmrSR+gLuKvXTNWl+yvBND k+hxjddvAkZ6r0qsVMU8LbEiFjk6DX6kE0jVSuJLR6acIp3MCZis+cDZ/zy9l8gBWl1x LrWQ== 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=GtTT8NGe6G3DkiP5Rm9Onpbp6zje1/L5iOPYrH8T6R8=; b=VjLo1h+3e+Be1qwaIfQ3Se9jeaOM5vEuRX2Uv7ve5X6+bywuG/kaO8C54ANE1xhdV8 hvZB8GHkiTwh5GjCX1g+PwdRf8eS7ygK6GZxeimKOSMiHLu1w0/r/D1TIHxk7OFln7I/ htYbfBiVW4X/zV231FZ85AzVzE/id+kBm34wqjcrHIRKQnKom1DSBNC0Rzxgg1CLBJMH YQGyC++GsqBAzTgZ60BrN+LYKMKZlUCx+TpgtDMwgrXoZaoFDy4pBTMrCqWZj1qCiumb NLOTYtIHqhT0sE9Wh6tuNyB14ml6iyKgjEy3fZO9WQBSf0NMrtKZMqgGAyBf8IIy1MXc n82A== X-Gm-Message-State: ALyK8tL4vzm2hmz2WtHm1ow3atmwXWqrxQtzeDam0SEaTCgRuvrGHVqO0U30luZsu1ljbz3/ X-Received: by 10.28.153.147 with SMTP id b141mr8051830wme.90.1464558862257; Sun, 29 May 2016 14:54:22 -0700 (PDT) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id a128sm20490367wme.16.2016.05.29.14.54.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 May 2016 14:54:21 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [PATCH 09/14] eeprom: at24: platform_data: add serial number flag Date: Sun, 29 May 2016 23:53:47 +0200 Message-Id: <1464558832-2262-10-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464558832-2262-1-git-send-email-bgolaszewski@baylibre.com> References: <1464558832-2262-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 the at24 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 d5e9024..fe0507e 100644 --- a/include/linux/platform_data/at24.h +++ b/include/linux/platform_data/at24.h @@ -48,6 +48,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;