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=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 A0231C433ED for ; Thu, 29 Apr 2021 09:37:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 62F8A61007 for ; Thu, 29 Apr 2021 09:37:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231722AbhD2Ji3 (ORCPT ); Thu, 29 Apr 2021 05:38:29 -0400 Received: from www381.your-server.de ([78.46.137.84]:44700 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231501AbhD2Ji3 (ORCPT ); Thu, 29 Apr 2021 05:38:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=/pBEEymtfqRvHJZ1rb3/zQrpTsUmC5J1LhtBShdDRPE=; b=kAQl/Aqd9G/6KiNEN8XWpxN9Nk vVDgDLftMwkge/vwLHtD+ySUjhqt3lrdFu9vd0BXUnCU3IUMXFTZntNnBmCiRog46n2ow/iai/hE9 ioNrYKaYDRkuFtg4aWKo3DG/gS/FQQNoHbcidHI+GHEedJAwJJffszq8MUilvGo3quHQ0lqMGMtkF GP2amoGIwP9ydihWmHrhvQwcCP0mTK9IaGI/wKfukND9vJKa6eP735l0UZqPP5+7hGsibG4SOjBlp Zs3gH/gxaCqDIXE6CJap3D22GrYh+6Is8eUmT/a177lU7qAtcbRMcRQRFT1cyW8uZOyk99nqMrtUT YvXd237w==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lc376-000EEw-Lv; Thu, 29 Apr 2021 11:37:40 +0200 Received: from [2001:a61:2bd3:3c01:9e5c:8eff:fe01:8578] by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lc376-000SNl-Ep; Thu, 29 Apr 2021 11:37:40 +0200 Subject: Re: [RFC PATCH 2/4] iio: accel: fxls8962af: add interrupt support To: Andy Shevchenko Cc: Sean Nyekjaer , Jonathan Cameron , linux-iio , =?UTF-8?Q?Nuno_S=c3=a1?= , Rob Herring , devicetree References: <20210428082203.3587022-1-sean@geanix.com> <20210428082203.3587022-2-sean@geanix.com> <28f1e2a4-b2fa-5e4a-954f-92d90966eaf7@metafoo.de> From: Lars-Peter Clausen Message-ID: <2cc54acd-1de2-b462-0f77-145244580999@metafoo.de> Date: Thu, 29 Apr 2021 11:37:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.2/26154/Wed Apr 28 13:07:51 2021) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 4/29/21 11:35 AM, Andy Shevchenko wrote: > On Thu, Apr 29, 2021 at 11:58 AM Lars-Peter Clausen wrote: >> On 4/28/21 10:22 AM, Sean Nyekjaer wrote: >>> Preparation commit for the next that adds hw buffered sampling > ... > >>> + irq = of_irq_get_byname(of_node, "INT2"); >> For this I'd use device_property_match_string(dev, "interrupt-names", >> "INT2"). Means it won't try to map the interrupt again, and also this is >> the only place where the driver directly depends on OF, everything else >> already uses the device_ API. > Why not platform_get_irq_byname_optional() ? Because it is not a platform device :)