Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp700925imm; Wed, 4 Jul 2018 04:34:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeyTmRlGJVJIL2L53RlHplMYitO/biCBJS6Ub6jZcCeU9ehSECKXtudTweGfl31vNGw56CZ X-Received: by 2002:a63:5b0d:: with SMTP id p13-v6mr1624875pgb.202.1530704051967; Wed, 04 Jul 2018 04:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530704051; cv=none; d=google.com; s=arc-20160816; b=hhuwoq8iw4IkgcunOEjr77BrJ044LhD5bv8gn1B+cs7Phkok70gbmE6K1lpQOhPpJp CTlFT752wLMNcuj3mf7HTqOVBGHAY0CcfmMl3PAA8mCg+Jqpm9DpK7YGT22lOTELrpOi HRLeU456iL2I/kVrnBMqhouqKFs8GSexam0FWs5IZn770jCnMoUgYCl5wxDpHZMA2Kbq qPOfVslGOKbDbpT04dg0BNmMuzebILUThYTru+Nkb8qNCUsFEpym1blGnuEsBBfF/EVb w327W3VXqBy4w+7Pkgits1tzpq5MGc76uXRI3Kf/OnDc4oQEAwcUxd4zz8oAVFZ8ONSI em0g== 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=sKf0uUAQ4/nGSAIOzHixUG3mEXmkQlusTbpUjVno3mQ=; b=ZoR7/6BGM+TTTJRsydJmX2RSoi6FyO35yJaLL2Jy/fXKzE5ClLb/+UBnhmXQdFi5DO vo5Z9hJZ9cTpKzpa0RJwf4XJQfgL7XGusQxfj0oZJJNGWJ/q7uEoKuZg82Z6d+Ojxz8R 5zxVl8a6bDFBTQyMgwjNkhU0pi4WNq0ee1IO8SuAddVEObb0eYRCf2qW0B1nqVtlCM5P 9lMIKlEJlzk8cb5IhKu3rQu+pIu60ZeYHYyOmpz1tqRLUBvaHIDBUYhLOQms/jv/8Am6 YX66tNVhTCE9A1zbuxkAV8tyMQ/duEVsllnfTx1NLy3oNvNciIYM/YwWmsHJWvAALl3v gzwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dowhile0-org.20150623.gappssmtp.com header.s=20150623 header.b=lkOmwm7w; 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 n125-v6si3200735pga.376.2018.07.04.04.33.57; Wed, 04 Jul 2018 04:34:11 -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=@dowhile0-org.20150623.gappssmtp.com header.s=20150623 header.b=lkOmwm7w; 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 S933962AbeGDLct (ORCPT + 99 others); Wed, 4 Jul 2018 07:32:49 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:43785 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932594AbeGDLcq (ORCPT ); Wed, 4 Jul 2018 07:32:46 -0400 Received: by mail-io0-f196.google.com with SMTP id i23-v6so4583090iog.10 for ; Wed, 04 Jul 2018 04:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dowhile0-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sKf0uUAQ4/nGSAIOzHixUG3mEXmkQlusTbpUjVno3mQ=; b=lkOmwm7wBXtx50+Bg85mx5ohWYwl6N6C7J5o7lRU7Xiywoa9THIXtBMsTrX8onSidE i0Ltzvfw78PmP5MRjQ+m/AqSi83GHiElWd4yTAkvKKhuJhWCtlPjjfaaVMNeR1QIg4Sz EivfxK0sdx0n/XRVXEWGDWeun95guP2W3nZ4W4eSq+j/ekfXuYipMfwaPAHghxv3XesA YPubsfauBgr+TjqU87uvds9mLO3w+9fvRgD6R+KeSWTB1Lux3qIHRws2/uKbkrjtV7iP EpmsgWuA6/hswQ9hWGTuI7+J2LQyDcIzFm7gZ/KxcuJ2rZIWYTevn2ArcmEBYxfcO3ur f6kA== 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=sKf0uUAQ4/nGSAIOzHixUG3mEXmkQlusTbpUjVno3mQ=; b=HoVC+1rAJmGvbr2LuwtBBCbb6s/8Zy94oAOkcaaHEmuueoy/GjFERvS3m4V7cJC85m XqtDw57Khp4krnzXPjwuukVNGtvy7yryGIDKhJExjwCwRNdPovXKwfgOSufkgcCabu9F 5P2KR+DglIflyeLqDzBc/P3YyiYiO5G0O0USgy0/xbWpn7V9ZIsKHxE5jp4KhyS7hV4x XT0nWlB1NFXSCLMAjRIg3iKtQbzwK7XB4Q+N7FW+y7ZboreDDSRYwjc1PcCFNUKMP42I a+PvE6BvzR20J7DyfpNOwWL8prCRH60aJM1hgH9gGpz36j/HJ1iXc5bpXtUYeGNn8iQ6 2y9Q== X-Gm-Message-State: APt69E0z6G63l83CFfwevAk7p9GKwQVExdcVnX6moSyc0CHS0vDf9ffp sbyYKD8gNsTVjvMeEQRx2Ou7L828DzY9LTs6r4s5+g== X-Received: by 2002:a6b:2092:: with SMTP id g140-v6mr1191585iog.167.1530703966010; Wed, 04 Jul 2018 04:32:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:f017:0:0:0:0:0 with HTTP; Wed, 4 Jul 2018 04:32:45 -0700 (PDT) X-Originating-IP: [195.166.127.210] In-Reply-To: References: <82c6f53cfa03f9bc7c0adfc423ae65fc986a1d25.1530599660.git.nikolaus.voss@loewensteinmedical.de> <10258a21-db42-2c4e-91d6-e9227e11f53b@redhat.com> From: Javier Martinez Canillas Date: Wed, 4 Jul 2018 13:32:45 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe() To: Nikolaus Voss Cc: Javier Martinez Canillas , Andy Shevchenko , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang , linux-iio , Linux Kernel Mailing List , nv@vosn.de 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, Jul 4, 2018 at 1:26 PM, Javier Martinez Canillas wrote: [snip] >> Ok, in my opinion it is an elegant way of not bloating the driver when no >> explicit handling (e.g. reading DT properties) is needed. Just adding an >> of_device_id doesn't change any driver functionality then but only maps to >> an already existing i2c_table_id. >> > > I disagree, in the case of OF for example a compatible string is > composed of both a vendor a device, the complete tuple is what should > be matched. > > But with the fallback, only the device portion would be used so both > and will match against the i2c device with id > "bar". It may or may not be correct but the vendor portion is very > important to disambiguate. > And having a compatible = "bar" is also wrong since the compatible string would lack the vendor prefix. The fact that the I2C (and SPI) core allowed this was what caused the problem in the first place IMO. Best regards, Javier