From patchwork Mon Jun 6 08:48:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 69375 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1376136qgf; Mon, 6 Jun 2016 01:51:53 -0700 (PDT) X-Received: by 10.36.2.71 with SMTP id 68mr15172925itu.38.1465203113564; Mon, 06 Jun 2016 01:51:53 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a194si27202053pfa.164.2016.06.06.01.51.52; Mon, 06 Jun 2016 01:51:53 -0700 (PDT) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbcFFIvt (ORCPT + 31 others); Mon, 6 Jun 2016 04:51:49 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38570 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329AbcFFItR (ORCPT ); Mon, 6 Jun 2016 04:49:17 -0400 Received: by mail-wm0-f52.google.com with SMTP id m124so62174496wme.1 for ; Mon, 06 Jun 2016 01:49:16 -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=NGbP/h0dp839E8iKfotqtguDhA52vEtEcYe8kPAwtCY=; b=x1I64roBGQLuMT4WHbbN/l8T2AYcRYoxlzWYJ3j7DzqTeALEZC4AFrOBArXse4HQIf vPyPKXM2p4GtyywbVEoN4yvecz67dJ6wRSN6ugo3pOkIWGqDqe5SA6Gw+cClpwZBxCju bRTaSCKbI2eTnoZnoUVbw61xjZmPEdYnSeK2cUn0FXdXmrn7EzCpFQrR/NVzDITeDj9f Mm6ph2QDvgT04GyrMJ24D6/qdyEdc+S+yNZUIeJywckyi+14Xp0tQsE893cTuO+k7yl7 UaAQfUw1ElxDD2DMs/GdEWZNGsw4ZNHhBsceQYoDG6AXdagxVXF+4wbuXSDHpUEQ9gOA seiA== 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=NGbP/h0dp839E8iKfotqtguDhA52vEtEcYe8kPAwtCY=; b=AOYLwgoZS+h0de+28gOKahsHvazFSg5qwb0c5fRbORokS0qEu6HD5sz95hsNi3qFX5 Tj5IQDrr/V2+0lAM4QuVQd1hhD6OW3uRxOUbt1P9h+ILukwmU4qEamgtNg6gemQEcR6Q TCYhIAc2bjrFEuX4mZOYKqU1L13KmGiGth31Wyu7cPwWIZN6TIO/1Nnt7cX7EHe29rmX e1gFzRxzgZMgN277sRn7QFtaOPqKo84DNCYZhqM4NAeJRTK0KWxUJZVZ2EVuQt7DTTQc OHUjPqvkIm0aAKLDr5Gz57iZeGtF8npGKfl0YxMvXOPvEbfNU/I3aPLe/5oa6X7DtLpN GaZA== X-Gm-Message-State: ALyK8tJC43zIB43w1do/c6QHFxY70RLLJCKgOmt13jt2jxZ3gEGkZM52p1ak7KoqyCxMCDEi X-Received: by 10.28.29.7 with SMTP id d7mr11504573wmd.27.1465202955617; Mon, 06 Jun 2016 01:49:15 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id dd7sm19090384wjb.22.2016.06.06.01.49.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jun 2016 01:49:15 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [RESEND PATCH 09/14] eeprom: at24: platform_data: add serial number flag Date: Mon, 6 Jun 2016 10:48:51 +0200 Message-Id: <1465202936-16832-10-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465202936-16832-1-git-send-email-bgolaszewski@baylibre.com> References: <1465202936-16832-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 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 diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h index fcfdfe3..d595874 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;