Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1113658imm; Wed, 8 Aug 2018 10:59:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwNyu/GKdbG6rkKeTzqO7sefQaBEi7gk9U+znF98wlj+qnvNRe+BGDB24ofOkLo33v7jfPt X-Received: by 2002:a65:5b08:: with SMTP id y8-v6mr3430491pgq.297.1533751154605; Wed, 08 Aug 2018 10:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533751154; cv=none; d=google.com; s=arc-20160816; b=aH30u5rh7L6uQ+CX/UyotaPa/h+LgmL523n6u2ZAhA5J5+c35wucUjwJXNxUcKddR/ p+WP8H6ponOcx44x0co6ZdEorGAyDsZZtQ/mne5jOjznx2RSbYaaf9BfkPRDeVlHXqpn LcYiK++1bd9Fq7umNCi7s1SsFdfldDucuiaJFpY2C1k0SeHQc43wU52iX1Rb81m7y3Wq chQpfKwULynDADpQEmVETL+46DZaLsPmF7xZp1RkdyemiDN2eBWWljykWIZGH2Rsr6++ cIX6fe9v77PhG01eT7HNKFV9nam4LCfiFdJtJ0ZdFwCOzq2m8AtVY6H2XPivJOfu4otz rLiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ruMmZ6ayWYll/SPsmZj99uG0U1nHL/FmOks8EaMER2E=; b=WDgweUK5Wrf+YUL5JcY0j5QHkfxICMVPc35C3QPN1YNVZSLIKfCyhm5MogLKof9P63 +jyP6WzxZ/v+Hm7ScppvwFAIAA8ltGpF5+yHmOpDjmr9SCSes5mhaigKmTQZ1u+gQgAb pB9h+Eqtheik7o1MtoLR1B85Odn6Po5A21geLsuOn9V24MPG5k+PZ8GafhSBSROEK9cn yyweDToCl7Obpw2SnILaG873a7MiizMb3mdUa/2AA4rqEc/QGBbGRzJrZ7ho/Yr5LWHR Kzxl0UmlZKa1JzfQ5L22bSH1SDxkULIV8w/iuPm+eCEqwlIw1OR6twIFPbs2XXRPsQh+ zGKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=di7hTdLF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si3853803pll.96.2018.08.08.10.59.00; Wed, 08 Aug 2018 10:59:14 -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=@gmail.com header.s=20161025 header.b=di7hTdLF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729759AbeHHUSx (ORCPT + 99 others); Wed, 8 Aug 2018 16:18:53 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:37850 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727748AbeHHUSx (ORCPT ); Wed, 8 Aug 2018 16:18:53 -0400 Received: by mail-ua0-f193.google.com with SMTP id y10-v6so3356733uao.4; Wed, 08 Aug 2018 10:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ruMmZ6ayWYll/SPsmZj99uG0U1nHL/FmOks8EaMER2E=; b=di7hTdLFpmEpvnzyEApTGHJnSsbCoxciwm3KpotUf4NemDzpYQP2a3QPD+t3L/eO5g UvUZR2YgErIB8UKworttEGK7kTijvrQENx3y1xQoScqdEcX6JT5s1XXp4IFHBI1CgHMy cCYFRE4/PmGqpjGiQMxuAikinV24rWQl3L9nGZS+snle2UF57ofdCg4uwpG1/haHukFt Hf5Z43+4IHXw+i2I5bMC6zzgEurhB20cIc5nypj6KryaTSCzE78Ggz1GgJzWpKhG7nWr 6b2ZprvTzTerqfBtkLiFaVu9Ntj3KpqB6oEIiFjBi//Gb6YgegJa3ppUgn9z0T5vxn/L gCFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ruMmZ6ayWYll/SPsmZj99uG0U1nHL/FmOks8EaMER2E=; b=LW4PlehWrqn3iJvzUs5y+t66kN5xy4e/iJI37hOHUpJCxz6jVZwgLC2DqTZhGEuP/W 3PAizKXB2i4bDykvD9MSbvLbc0dB/4kkScFYHxgzIckxJVj/jHfJUEqmF5BL0AXTUQV1 JusDXNR8gRCn631+j5kVxZdBmwmSHeDIkxiaFFNf5OY2IQvf90lg5bhfE7jhBjotzhcn L89iXR23MxIJFmKnzlFYIw0wYicYrDOeAgNYeUKO24G+9ivLWReq8CwihmvRCYYy9J4W HPx8P2Fp987OFcLuD8LfBPJueAmBmMS4NOfZmhsvroNC+T/p5EQ2OwEQd3Inbn3Qwb/B 7fmQ== X-Gm-Message-State: AOUpUlHgg5+eJqULUu3y+n0GkJUveH5RgDnY33knJ01R+9t02cJJr4T2 rBDnim/BSAHNp8R0GXqqKUqdtJb2aSZi6N+43qA= X-Received: by 2002:a9f:2187:: with SMTP id 7-v6mr2864710uac.49.1533751085403; Wed, 08 Aug 2018 10:58:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Wed, 8 Aug 2018 10:58:04 -0700 (PDT) In-Reply-To: <20180808153150.23444-28-brgl@bgdev.pl> References: <20180808153150.23444-1-brgl@bgdev.pl> <20180808153150.23444-28-brgl@bgdev.pl> From: Andy Shevchenko Date: Wed, 8 Aug 2018 20:58:04 +0300 Message-ID: Subject: Re: [PATCH 27/28] ARM: davinci: mityomapl138: use device properties for at24 eeprom To: Bartosz Golaszewski Cc: Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Alban Bedel , Rob Herring , David Lechner , Andrew Lunn , Linux Documentation List , Linux Kernel Mailing List , linux-arm Mailing List , linux-i2c , "open list:MEMORY TECHNOLOGY..." , Linux OMAP Mailing List , netdev , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 8, 2018 at 6:31 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We want to work towards phasing out the at24_platform_data structure. > There are few users and its contents can be represented using generic > device properties. Using device properties only will allow us to > significantly simplify the at24 configuration code. > > Remove the at24_platform_data structure and replace it with an array > of property entries. Drop the byte_len/size property, as the model name > already implies the EEPROM's size. > Reviewed-by: Andy Shevchenko > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/mach-davinci/board-mityomapl138.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c > index 17b67e26bc0e..be0fb7d17e25 100644 > --- a/arch/arm/mach-davinci/board-mityomapl138.c > +++ b/arch/arm/mach-davinci/board-mityomapl138.c > @@ -14,11 +14,11 @@ > #include > #include > #include > +#include > #include > #include > #include > #include > -#include > #include > #include > #include > @@ -185,10 +185,9 @@ static struct nvmem_cell_lookup mityomapl138_nvmem_cells[] = { > } > }; > > -static struct at24_platform_data mityomapl138_fd_chip = { > - .byte_len = 256, > - .page_size = 8, > - .flags = AT24_FLAG_READONLY | AT24_FLAG_IRUGO, > +static const struct property_entry mityomapl138_fd_chip_properties[] = { > + PROPERTY_ENTRY_U32("pagesize", 8), > + PROPERTY_ENTRY_BOOL("read-only"), > }; > > static struct davinci_i2c_platform_data mityomap_i2c_0_pdata = { > @@ -317,7 +316,7 @@ static struct i2c_board_info __initdata mityomap_tps65023_info[] = { > }, > { > I2C_BOARD_INFO("24c02", 0x50), > - .platform_data = &mityomapl138_fd_chip, > + .properties = mityomapl138_fd_chip_properties, > }, > }; > > -- > 2.18.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- With Best Regards, Andy Shevchenko