Received: by 10.213.65.68 with SMTP id h4csp429662imn; Sun, 25 Mar 2018 03:20:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELtkoVgmiALLwV49DuGejN6Wkc/1cuH+NfOvxfuQBXndjTWGmTFPO097fAOO2AlwTP4PBDl8 X-Received: by 10.101.76.10 with SMTP id u10mr13614551pgq.445.1521973253088; Sun, 25 Mar 2018 03:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521973253; cv=none; d=google.com; s=arc-20160816; b=fYJd2k2R+uMdkOVZ5y3vn7cK5rCcFwehwOCPpehBks/kHbcA1ATKgXM6NBHWDLfTBL 4UrFnnwbVp/3wJwFy8ecdZf6/dAic1IRkCzLCa1FJrbAusc++yuEFuQun3go6mJBRWoR 0UTnLoVxKvUeBEkIntHSqQgQRbX9DKEWaaLbIAKA47Tq0OVFitc/GuyLCH8rLJSHldh7 UHUdAlf+nirm6sAHZj3R+Je0zRXUTxN9YYvG93c5WIvovzYcSUTsA+kPjA3bo8CoUmuC OCYinvXcq0HGMBlxpZrLIVCwKE6QnJIfpkCTu93Jdin2AMFtqEiJJrFGrQPgG6G7M5Yp UOjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=64DDenrjK4PMOFi0gHHihGvedNhJlLWtiuaYdRTMp8A=; b=AMDK/MS1q4MLgYdom+PDG3TDK7bpoEmR6KImxwElKogXZ0yO6e8bQ9Udjs343Ey1eE zELo5PC2icXrRTmwRA2lSe8bpaijJq7avsVStCvY9TMkNjrvF4Mu06CnNEvGQhi75+51 B1KC/JiVImX7Xp1zVe3dDlGhWkQp7qrCfEyi4hD8KJGejG9LOhWDdTWldILR6EwrYyU5 E7dHMMuolKHbbMekzn5wm2nruKj6r92wC2x1o+/Ajr4kKbLeKDTWJQxE9AI42IM0WHhi R3h4S1+J5CotTGnbMxcacSDnvmX7Ncg+Q25KDYV7t8ITbYOvJ9Xd7Gry6+C814UsOJTQ Jt1A== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j127si8910578pgc.653.2018.03.25.03.20.38; Sun, 25 Mar 2018 03:20: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; 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 S1753206AbeCYKTm (ORCPT + 99 others); Sun, 25 Mar 2018 06:19:42 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51309 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbeCYKTi (ORCPT ); Sun, 25 Mar 2018 06:19:38 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 056EB2082C; Sun, 25 Mar 2018 12:19:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 3538B20722; Sun, 25 Mar 2018 12:19:34 +0200 (CEST) Date: Sun, 25 Mar 2018 12:19:32 +0200 From: Boris Brezillon To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Boris Brezillon Subject: Re: [PATCH v3 01/11] i2c: Export of_i2c_get_board_info() Message-ID: <20180325121932.6b0e5e5f@bbrezillon> In-Reply-To: <20180324223518.g5jsi5zvoxa75psy@ninjato> References: <20180323110020.19080-1-boris.brezillon@bootlin.com> <20180323110020.19080-2-boris.brezillon@bootlin.com> <20180324223518.g5jsi5zvoxa75psy@ninjato> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, On Sat, 24 Mar 2018 23:35:18 +0100 Wolfram Sang wrote: > Hi Boris, > > > - rebase on v4.15-rc1 > > This code has changed a little meanwhile. Please check my for-next > branch. Some changes are identical, some similar. Actually it was rebased on top of v4.16-rc1, but I'll check if this patch applies correctly on top of your for-next branch. > > > - info.archdata = &dev_ad; > > Why did you drop this? Well, this line could have been moved in of_i2c_register_device(), but I realized dev_ad was zero initialized without any further modification, and leaving info->archdata to NULL has the exact same effect (see [1]). Regards, Boris [1]https://elixir.bootlin.com/linux/v4.16-rc6/source/drivers/i2c/i2c-core-base.c#L711 -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com