From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8A46C3279B for ; Mon, 2 Jul 2018 06:50:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5DDAD2150A for ; Mon, 2 Jul 2018 06:50:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DDAD2150A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=loewensteinmedical.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932254AbeGBGuZ (ORCPT ); Mon, 2 Jul 2018 02:50:25 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:38244 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753347AbeGBGuW (ORCPT ); Mon, 2 Jul 2018 02:50:22 -0400 X-Greylist: delayed 533 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Jul 2018 02:50:21 EDT X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id D43BF40B88; Mon, 2 Jul 2018 08:41:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.steuer-voss.de (Postfix) with ESMTP id C9B84409D3; Mon, 2 Jul 2018 08:41:23 +0200 (CEST) Date: Mon, 2 Jul 2018 08:41:23 +0200 (CEST) From: Nikolaus Voss X-X-Sender: nv@fox.voss.local To: Andy Shevchenko cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang , "linux-iio@vger.kernel.org" , Linux Kernel Mailing List Subject: Re: [PATCH 0/3] IIO: st_sensors_i2c: improve device enumeration In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Jun 2018, Andy Shevchenko wrote: > I'm not sure I understand how ->probe_new() is supposed to work > against i2c_id_table, but I don't care for legacy platform data > anyway. > > What I would like to point to is device_get_match_data() API which > should simplify / unify the case how you get driver data. This driver doesn't need any driver data/ platform_data beyond the i2c_id_table name (which has already been matched when probe()/ probe_new() is called), so strictly neither of_match_table nor apci_match_table would be necessary, because i2c DT/ ACPI enumeration also matches against i2c_table names. But thanks for the hint ;-). Niko