Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3673707pxm; Tue, 1 Mar 2022 03:12:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwV0MqH7fkU/ukA2F1j2Xi8Ah+BnJrLFMnDhorJczKqxl81QAgvqi77H1fAHrEVJ0aL58V X-Received: by 2002:aa7:88c2:0:b0:4f3:fca9:6422 with SMTP id k2-20020aa788c2000000b004f3fca96422mr13215575pff.5.1646133171281; Tue, 01 Mar 2022 03:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646133171; cv=none; d=google.com; s=arc-20160816; b=X9kb8045vL2E4ptQ8XW09wS69pf1tMWsrn7r2cFNrw5amAUfFUMKBL7BsVGf5MOUW6 jEdJbg1pSfWB8A5ZQ6TBs8LgzLeWuzmnihcjX9OzZ29veG5X4Zke9taD1V9XS0UbGTnT UtFQJzv6DiIMksgyAW0sQdPtcm0wYD6gMGeapBmECLIWQN0HGUR0/ceulygNgAr+alIw zqO/cqNLwyaLGm1p0g6edE09JvnGewdaJ9bxnoPAmLtIariKlgLrsTQ52OVrRLg24u2u mImEaSctCltGuhRHtusb64s0TyvjHPMF8GxxqNFLezDswizu7v3amaDC13RlTPWcwWVM 9o1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dZm4dVdpcvNRhKnzE3iapZ6aqr4LkpURHZ0F0cP2Ffk=; b=j6vgzdvB7DByQVSIb6mTskUfsjg6LPjTT+f9mYf4eIqh28VrrRikgXPMmd9zhXCtRO xj/i66CvapAVpIWSWYCYHsBCx84PduydR+jQX+KSRpUs9heSE0ZsXoWkD2JvaudjzMQ6 xfVG72dgxm6q8eYspxnP77MM20/GbB3WaCEYPq85OncFoFNpZO15zTkjmmIURETKWnAf yRAK5/IYuzmegjfnIiGxHG/qW/SDdFBNUZXQDnAeRruMo8PFKg+h8Tv6mVcpG4qu92Qp YjB/6Add8ocHNBsFjE7Nx/UJhObDCEa3jljjDmvQ1PvQy3f3B6KoVk8KKKtV1uTC6fQv MEGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=lbftfQba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a17090a8d0500b001bc4dc8500csi1966082pjo.98.2022.03.01.03.12.34; Tue, 01 Mar 2022 03:12:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=lbftfQba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233476AbiCAImp (ORCPT + 99 others); Tue, 1 Mar 2022 03:42:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233459AbiCAImn (ORCPT ); Tue, 1 Mar 2022 03:42:43 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AF6D88B16 for ; Tue, 1 Mar 2022 00:42:01 -0800 (PST) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 39B8F3FCA5 for ; Tue, 1 Mar 2022 08:42:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646124120; bh=dZm4dVdpcvNRhKnzE3iapZ6aqr4LkpURHZ0F0cP2Ffk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lbftfQbaBU844nsZQB31PSLptIySJ/JrJsUhYj9C/gK/ETMAIBRyjckV3rzW7rX2n 5XX9HWyAxrW9+FpO8SUN4Putjgwt64v62kPOwDuWMUgGdWGQQ8nGhhOcCREbV2acwW LpKVZEtkmXEGBsN+I3xBM8X8vRAOuOUV30ZE/h5Kz28oo0WP+/eAgWzhVrBhHzIyhv Ooq3sO742mRLCT8mg2/FsXYQvtVAkix6RNFvhU8eIWKIx3EjqDb2gQjrr0r/tayLaD 3AhGFjSF7GG+B+Pln9+oLk0El5Xxnsh9O4dDG/FFwtudKz3/M/zRiWiA2yNJCL+NpA ztoPouzOVcEUQ== Received: by mail-ej1-f72.google.com with SMTP id nb1-20020a1709071c8100b006d03c250b6fso6485039ejc.11 for ; Tue, 01 Mar 2022 00:42:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=dZm4dVdpcvNRhKnzE3iapZ6aqr4LkpURHZ0F0cP2Ffk=; b=xNNryGFVWpb6LxCc5Xvgt+HPWlGgX1IW0HqbVqARI0OGqLeMNyKHv9Gj2wAR4jyqfG 5LzMJmu4CfcDsthMZEN/ePaP1zzNQczk9oBpsggO7sCYdPqB7ii14PSOk+9Arh9zfjXN Aq+CU6LfdWcNUSSDUMb8mn4FgJw2tLI4DLkPvDc1p1YnDKcWSL7e7vfh/o3zKlrrn6YJ eB2rTx4HktCytMN1Pz09PUkZiauENwsZ/F0jcVJdGhWHUE/H/KS5ftOMLTcffUOKX/56 QiAe2vElQpFDdraE/+diogIsH3mwWo6Pdiftl7HhPvMPjHQuuk28cnKcYkJGnWeaL31r W1Lg== X-Gm-Message-State: AOAM531XIKThpV3+fHRa+U5X3LIrAHPeXQv5bl3d7a1RClVHZQ7o3x89 0/ixLvhDI4nuVpxwsSibNQz8l/kxHwTTQofh0yBBmMdn7DOin5B9UjyH091Hs1TBtYu25oRUKQ8 h0+sTI6TRT9gzKFBAT2LwTYMB3Et/dZQpSyOZFIXRLg== X-Received: by 2002:a17:907:248a:b0:69b:ba2d:62cd with SMTP id zg10-20020a170907248a00b0069bba2d62cdmr18284926ejb.212.1646124119342; Tue, 01 Mar 2022 00:41:59 -0800 (PST) X-Received: by 2002:a17:907:248a:b0:69b:ba2d:62cd with SMTP id zg10-20020a170907248a00b0069bba2d62cdmr18284886ejb.212.1646124119100; Tue, 01 Mar 2022 00:41:59 -0800 (PST) Received: from [192.168.0.135] (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id bo14-20020a170906d04e00b006ce98d9c3e3sm5116757ejb.194.2022.03.01.00.41.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Mar 2022 00:41:58 -0800 (PST) Message-ID: <59ba1fd5-4be5-278f-47df-d26c341da73a@canonical.com> Date: Tue, 1 Mar 2022 09:41:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 05/11] PCI: Use driver_set_override() instead of open-coding Content-Language: en-US To: Bjorn Helgaas Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Stuart Yoder , Laurentiu Tudor , Abel Vesa , Shawn Guo , Sascha Hauer , Fabio Estevam , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Bjorn Helgaas , Bjorn Andersson , Mathieu Poirier , Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Andy Gross , Srinivas Kandagatla , Mark Brown , "Michael S. Tsirkin" , Jason Wang , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, virtualization@lists.linux-foundation.org, Linus Torvalds , Rasmus Villemoes References: <20220228200606.GA516338@bhelgaas> From: Krzysztof Kozlowski In-Reply-To: <20220228200606.GA516338@bhelgaas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/02/2022 21:06, Bjorn Helgaas wrote: > On Sun, Feb 27, 2022 at 02:52:08PM +0100, Krzysztof Kozlowski wrote: >> Use a helper for seting driver_override to reduce amount of duplicated >> code. Make the driver_override field const char, because it is not >> modified by the core and it matches other subsystems. > > s/seting/setting/ > or even better, s/for seting/to set/ > >> Signed-off-by: Krzysztof Kozlowski > > Acked-by: Bjorn Helgaas > >> - char *driver_override; /* Driver name to force a match */ >> + /* >> + * Driver name to force a match. >> + * Do not set directly, because core frees it. >> + * Use driver_set_override() to set or clear it. > > Wrap this comment to fill 78 columns or so. Thanks, I'll fix both. Best regards, Krzysztof