From patchwork Thu Mar 24 16:19:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 64408 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp757013lbc; Thu, 24 Mar 2016 09:21:21 -0700 (PDT) X-Received: by 10.98.69.84 with SMTP id s81mr13931261pfa.125.1458836467041; Thu, 24 Mar 2016 09:21:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s28si13089334pfi.238.2016.03.24.09.21.06; Thu, 24 Mar 2016 09:21:07 -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 S1757509AbcCXQVE (ORCPT + 1 other); Thu, 24 Mar 2016 12:21:04 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37955 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756651AbcCXQTy (ORCPT ); Thu, 24 Mar 2016 12:19:54 -0400 Received: by mail-wm0-f50.google.com with SMTP id l68so73703873wml.1 for ; Thu, 24 Mar 2016 09:19:53 -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=EGSiPWtMGdBKB9ZHUUHwdi7Pf+QlGMzcOmihdzoy/dg530Yng6n6r2ID7zXO+yu1Jh H5+HIV8lGDdXjwdXaMtUmjO4eYJomqp4OQ0s8TN4LK+1UQ7QkBFc1/QLxP9Oo/VY83RK 4KxDsuzAE3IoFsL+xsoNRX6mjugVJQ4B5nEND1odfm1MHc/yZugbyhuyPMW9iDlPbJlh GhCSud81CKAJrnyuBbbgIeiLzQQJF94LS+hTvxVKgMT5XCBah6CrCos8Qh8L6YaI4xpg x6Z2rUnnfUuYHXD3OVTcenpiRuxAr8fSUsB9Iy726OeZ/OfyotccDFSpisoZUtwF3Mms 5U/A== 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=jSzpxXzuG1MEfNoBlavy4Wv+hWCgxZC1/Is1HAjbfuymrJN1iACktxW4Dco0Mtidh6 pWOzda4ChVaNTUSFcMHAl4PzCBMbHWm6SJZUz0LypqB4mD4ljJN+oJTAqggPWLZuy+SH CX00NSv1AsAUDtZmdl7hOjQBMXuObibrumH+XvoIiyrstro7VVCZWaqEul+4+8KxO/5j SkITG4FOMLjbUGr0bt8qLGnhgPhea0vlFs7ZN23/6t4AeLpIOOCn0n0Zyvn0AJ4M7bGz sbX9KaB/Du3YXk3RHxYuEY1wzfizucpKmZ9xTMZhuFShWncM9W2S87idEbVLvCpWP/Kk yDGw== X-Gm-Message-State: AD7BkJI0atlRkka/84wKr76tA2GO7U2ohQZO28Vf+ZZXZCHlCMoloG2tmWlc9zVKKNbJ4QRC X-Received: by 10.28.125.195 with SMTP id y186mr11038789wmc.79.1458836392445; Thu, 24 Mar 2016 09:19:52 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k124sm8370718wmb.11.2016.03.24.09.19.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 09:19:51 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML Cc: Andrew Lunn , Bartosz Golaszewski Subject: [PATCH v2 06/13] eeprom: at24: add serial number flag Date: Thu, 24 Mar 2016 17:19:36 +0100 Message-Id: <1458836383-6668-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458836383-6668-1-git-send-email-bgolaszewski@baylibre.com> References: <1458836383-6668-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;