From patchwork Tue Oct 20 08:43:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 55288 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 0A61923024 for ; Tue, 20 Oct 2015 08:46:46 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf4760458lbc.1 for ; Tue, 20 Oct 2015 01:46:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=FFkFO3B7VeaG/TfO43vBNHvaGZH3au9SrIPw0dw1aOA=; b=WzRLhbZOh7sMeYcDRgP+igRwOa3tVxmLIba4vGXsbeJqnIQOa3cGwNPJGu2MQIrbcL Zssis/ADNZy2/zakZf1cm3tak7bm7mACdBpaAVM9+DTfQPATneNmCGEk+apgqkzmeej/ iwJjqf9tE4b+UnOLbGrgHOCGBg9THfx6Jf/COx0UFOz0cPDJzm5IlnrSEIA7h4zsDHg2 /iLQN19KCclfsO2WpTBQRk2mFvx3V0DrlciNP2WJcZzmb7eNn8g0VCrzMHnqaTqW+zC1 lUxOQ49nErfMl55cUBwQ09uYQbGI+OfTY2cxREzNcZWzADZjAfRmVrDZu/Vafsnp46n1 T6ww== X-Gm-Message-State: ALoCoQnLTxNwWALPa//fLjgXtxmW5Od1bo5eTiD/NFcPJ90PVKmPgld860L6F7b00QCKAaNfPYKB X-Received: by 10.194.71.166 with SMTP id w6mr378124wju.6.1445330804968; Tue, 20 Oct 2015 01:46:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.146.140 with SMTP id u134ls40255lfd.65.gmail; Tue, 20 Oct 2015 01:46:44 -0700 (PDT) X-Received: by 10.112.138.37 with SMTP id qn5mr1062006lbb.52.1445330804778; Tue, 20 Oct 2015 01:46:44 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id f190si1458526lff.53.2015.10.20.01.46.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 01:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbcao8 with SMTP id ao8so9761520lbc.3 for ; Tue, 20 Oct 2015 01:46:44 -0700 (PDT) X-Received: by 10.112.161.168 with SMTP id xt8mr1038087lbb.88.1445330804548; Tue, 20 Oct 2015 01:46:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1942970lbq; Tue, 20 Oct 2015 01:46:43 -0700 (PDT) X-Received: by 10.107.6.225 with SMTP id f94mr2609124ioi.194.1445330803486; Tue, 20 Oct 2015 01:46:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i36si1938937ioo.118.2015.10.20.01.46.43; Tue, 20 Oct 2015 01:46:43 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753854AbbJTIql (ORCPT + 28 others); Tue, 20 Oct 2015 04:46:41 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:36357 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753624AbbJTInn (ORCPT ); Tue, 20 Oct 2015 04:43:43 -0400 Received: by wicfx6 with SMTP id fx6so34457945wic.1 for ; Tue, 20 Oct 2015 01:43:42 -0700 (PDT) X-Received: by 10.180.186.98 with SMTP id fj2mr27017343wic.58.1445330622201; Tue, 20 Oct 2015 01:43:42 -0700 (PDT) Received: from localhost.localdomain (cag06-6-78-235-100-105.fbx.proxad.net. [78.235.100.105]) by smtp.gmail.com with ESMTPSA id kr10sm2390754wjc.25.2015.10.20.01.43.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Oct 2015 01:43:41 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [RESEND PATCH 2/9] eeprom: at24: new flag in platform_data Date: Tue, 20 Oct 2015 10:43:20 +0200 Message-Id: <1445330607-12470-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445330607-12470-1-git-send-email-bgolaszewski@baylibre.com> References: <1445330607-12470-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bgolaszewski@baylibre.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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(+) 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;