Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3132398pxm; Mon, 28 Feb 2022 12:44:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoguxuitp9h792BGQGRaF9QYppe7wuSM7auyAmedyGZuUjmbpQoVXpikO9d5OBX4KSDoyV X-Received: by 2002:a63:1620:0:b0:375:948e:65bf with SMTP id w32-20020a631620000000b00375948e65bfmr17689457pgl.49.1646081075859; Mon, 28 Feb 2022 12:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646081075; cv=none; d=google.com; s=arc-20160816; b=FDt8dly7DAmEmP6gD3dp6kwNubqpoFalV7TcpX4R1jEjbs+rznKRD1ECks9kcG+15i IWNRU89wsvJWXPpZhwBW4jDPHmS36c3EWOrwyEZP1j/rJEyI5j9keoIOaVOMmwoS0l4e 6i0NQzaqXv1cT8xBvlqvJQarbjxyZ4kAO5CxRAuInCP31ynjX+0rYVkHjxIQ+RXTTXR1 fA1U2CfJv3azdsadGW2LWd5neA8W+kp1av8cMjAH0EYEA0GfobVoE+vqkMDu0bDKdZIE EO8DHEZjM89J1qrTRLCmGFWgWv+71LenIs8VrATmGLON+jF3k1ZkuM/7TR/rBmrqB3tf C74A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=zN+i6yc+C+rYUhbcIcQYzX4Tc6aqzUF74VQa8sToMgU=; b=G66HZ3PU9PKpv7K4HVk8mANYbr7FGtGmQuqAhyGbmvnjAQItN98FT5Y89z7z3AasLF uTK4HeOVVgQBV6fWTXSO17vcekyV+uxamazI+ezPA7VS5nvUw/Gj5L4fNFCPJOBKaqqm CYrtutwsv9DCEz+oT0yQpH8RiLagUDd38tVs0TqDNj8PtESqe657Q4TtExTkTA913Imh C1gFM6C9YjOiBff85HsL3TVJ3eLsTP4mjfhNwa0nPO4kvOrCaiFm7H+4blJXMEc7oSXi ajlPSKOOgfkWmVdu3NAfM8ZhPqkOUIeeBxs8qqxjGKRqRuxuddCUtR9ziqNJiztx6WFR h7iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qb3B2kQ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p9-20020a170902bd0900b0014fc1231e61si9813847pls.26.2022.02.28.12.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:44:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qb3B2kQ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3F67A4A915; Mon, 28 Feb 2022 12:06:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbiB1UGw (ORCPT + 99 others); Mon, 28 Feb 2022 15:06:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbiB1UGt (ORCPT ); Mon, 28 Feb 2022 15:06:49 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67D33DEDE; Mon, 28 Feb 2022 12:06:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 27383B81642; Mon, 28 Feb 2022 20:06:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85E29C340F1; Mon, 28 Feb 2022 20:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646078767; bh=uSavGpk0ExFlsWEKDVZVzJWcPdfAeGmRGCCGsNDGZJI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Qb3B2kQ3+f9XzXe4nmDRsU8fezmZ+/v8PAEwfxslUlmRBgDPXTSFx61nrA8w3HnnB jiO48/wBjY9ATJ1CiCs8pQbzqi+CPyMUD7VJzynEdGC7iEhWqi2wiMxXsSWYiUDIQt A3kKL2pQXkopi7jn30+fSIP85KMOScBqm+z9JZHWR2G9Pnhp71ylIv9Hk7UHqh5TFW vROrJiyF+MkB5CSUYjMTwfvPtGA4K1mbCgJkjG4HhaTUDUqd2aSATsYWThH1CNVAP/ Q0tdc6VQmrdT+I+jgvtFLagljNriJV7jZByMhdj/HNW8K7kIBTiLovJvYIp5rkp81v RPoj3hmNJbrCA== Date: Mon, 28 Feb 2022 14:06:06 -0600 From: Bjorn Helgaas To: Krzysztof Kozlowski 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 Subject: Re: [PATCH v3 05/11] PCI: Use driver_set_override() instead of open-coding Message-ID: <20220228200606.GA516338@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220227135214.145599-6-krzysztof.kozlowski@canonical.com> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 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. > + */ > + const char *driver_override; > > unsigned long priv_flags; /* Private flags for the PCI driver */ > > -- > 2.32.0 >