Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1111644imm; Wed, 8 Aug 2018 10:56:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzBaYvk1hJKViLk0p3/rDudgPnnQxA5uIhuoQEo9KvJRJy0NH5hx0b6vUlUgGu2LKOW6eLy X-Received: by 2002:a63:cd02:: with SMTP id i2-v6mr3438608pgg.93.1533751019389; Wed, 08 Aug 2018 10:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533751019; cv=none; d=google.com; s=arc-20160816; b=rgZI26myRS63Z0arGgF55ZCqkucU3wvv8xBJ7GR8HLIgG0rt/0h/eAvw05v1z/wMnP MsHZ+33n85kXZml3WRDKCoMX4EI/u4ZWauy/zNDy6iJD1xLFwZnu8mjwcHEjtjmvNSoz kj8/vwoFb4gkxMXmVjJTt/v/zMt73jzLI6D2dH2OcM64AlPgO1BveTClkrGbAVFtTufL /V/KP2eiFNEmkn/5zEXA32mzZ3yqUTQoN+ZQ+bXzdOe4nwuEJea0FOuYppyGROXG5gav Q+wnFd8ClRCTwh9K4SrnCqgw90UbZbobvROIN/fmiwIMtPCdy2suqhGtwHvYBbrnqrH6 /APA== 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=e1FNzDKQits+JaxkH4ViuZXmWJrlqCDWrsxJtCz89RM=; b=SlfTo0RJLNRCcTDYGb1SsFJljf/7OSDmVEeliw/i7eXAePHLnj55/NCcKVryAvEmpp JOprlZJuc1OVLQ5lvv1/k5h1utXRHwEZT5zyPhfO3799iMlsFJGCCHoc2LMe4v+ayZzQ 89BhMak2fOrSuJIEGFm9okEH5N4d3f87M4s7jM1q0gTTqMdXH8gJE1e9HS5/nGSOBrdt lysn/tAXwYdjR6fdZXF0agQRpY8oHuNYuExm1Vo/xIzOXRlUwSj5UBYfUCJd2JmZ2TN2 KwetWemqwAm/e6q+X5ns3/Qr2eZ9q/z6IOSEqMGoFgO8qqN6SyxQTv5XQqVbmWeclcBb 1rNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sDI2+epP; 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 u15-v6si5062014pfa.28.2018.08.08.10.56.44; Wed, 08 Aug 2018 10:56:59 -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=sDI2+epP; 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 S1729759AbeHHUQe (ORCPT + 99 others); Wed, 8 Aug 2018 16:16:34 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:33512 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727062AbeHHUQe (ORCPT ); Wed, 8 Aug 2018 16:16:34 -0400 Received: by mail-ua0-f195.google.com with SMTP id i4-v6so3371533uak.0; Wed, 08 Aug 2018 10:55:47 -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=e1FNzDKQits+JaxkH4ViuZXmWJrlqCDWrsxJtCz89RM=; b=sDI2+epP755QKp69KXgS0999rLJKVTrMHX44nJO2vIlzgH28hEP54bZYqgrNb4DACa GinSYri68z6uA9T5FF1tUNCFqsIXbxq1PvjJ9IMs4AQT/jMJTEomQCr04ZDMpvG+dR09 17yvHrmn4skgyoF+99B2Cbc6z73hoG5XILmSs1UHeY06CiwdHHYYx5Cjz3XSIWVkgWmu xGCYRzCgpSLgjEOQuA6wGFyYg1EDyOhjK3/MTUANZZJP6TbOvanW/7a01DvEXQ5O3MMH 2pP8xmbw80zFjnZdfIAjLO+IOj8P1k/i3XGivTltwRSgBWQULX9lJuA1GPAQIgjlhzjp wD6Q== 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=e1FNzDKQits+JaxkH4ViuZXmWJrlqCDWrsxJtCz89RM=; b=jNG/LePkUIxf3P37/PUsfpe7qXApYamlEaCnQmRP94GbzsFv2yOy3mfbZOPkv/mxyR kUgczIMjNgLYeq8PgYyTD2CM7n9a/l8AZ0MT2/pN0M9RDkvAY50E+anOXOsCO8JPLNHF /gS0L/Yk26+WkZlQc5Mwmaf4fdnO26Rlt7fssZG4xnZsBxAAzQu/O2nCyTZIEPZUNb5D /CRMZaPZO00pw5GwGOnYgW6tk1jEwVX4d3JkEU4hdW6JD5ap+je/g6n+VcNB+/NMVMcN ss7v/386k4APykLvachYuqlswFQOVPS6JrsiwUY657iBrIFw9aiHylG6Uh+E2oU9bcca g09A== X-Gm-Message-State: AOUpUlHLNzKmqtb8z6Dc3e8YyFPY8K7srfqiVCIUa06bWCUFwkMtkjc4 0yK9Y2lvJitLCyf85qfhQowaX03GDmVA/+1egBU= X-Received: by 2002:a1f:c884:: with SMTP id y126-v6mr2441325vkf.76.1533750946682; Wed, 08 Aug 2018 10:55:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Wed, 8 Aug 2018 10:55:46 -0700 (PDT) In-Reply-To: <20180808153150.23444-22-brgl@bgdev.pl> References: <20180808153150.23444-1-brgl@bgdev.pl> <20180808153150.23444-22-brgl@bgdev.pl> From: Andy Shevchenko Date: Wed, 8 Aug 2018 20:55:46 +0300 Message-ID: Subject: Re: [PATCH 21/28] ARM: davinci: dm644x-evm: 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-dm644x-evm.c | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > > diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c > index 6d35c6e1b0bd..abfcf42da6fb 100644 > --- a/arch/arm/mach-davinci/board-dm644x-evm.c > +++ b/arch/arm/mach-davinci/board-dm644x-evm.c > @@ -16,8 +16,8 @@ > #include > #include > #include > -#include > #include > +#include > #include > #include > #include > @@ -486,12 +486,8 @@ static struct nvmem_cell_lookup dm6446evm_mac_address_cell = { > .nvmem_name = "1-00500", > }; > > -static struct at24_platform_data eeprom_info = { > - .byte_len = (256*1024) / 8, > - .page_size = 64, > - .flags = AT24_FLAG_ADDR16, > - .setup = davinci_get_mac_addr, > - .context = (void *)0x7f00, > +static const struct property_entry eeprom_properties[] = { > + PROPERTY_ENTRY_U32("pagesize", 64), > }; > > /* > @@ -601,7 +597,7 @@ static struct i2c_board_info __initdata i2c_info[] = { > }, > { > I2C_BOARD_INFO("24c256", 0x50), > - .platform_data = &eeprom_info, > + .properties = eeprom_properties, > }, > { > I2C_BOARD_INFO("tlv320aic33", 0x1b), > -- > 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