Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp393271rdh; Thu, 26 Oct 2023 05:24:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIrS23/TKtA3tTLMpx6E4/x25QzYiAqCVBvHjwqotnYps93JbP72gNxFKioZH78GkZAnOV X-Received: by 2002:a0d:f547:0:b0:5a8:72ee:463d with SMTP id e68-20020a0df547000000b005a872ee463dmr17659740ywf.49.1698323068190; Thu, 26 Oct 2023 05:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698323068; cv=none; d=google.com; s=arc-20160816; b=K2l/aOedCSl7Tp5wpnwBh15Bnb010K+BarmffdDpO+OAD6DpvVa8jKOHjr68Vkr0OJ IOwogyPyb3YVMl8hpbi7fQt8dWXINF3M7k/1VvK6zPN5cC9A4D074nTeeDZtzCEAWjem eJLJZy7c1wS+MF2V+XcF9X/f4vAM8SmXZ7czEfcU9ZFOsNIuxfEOwVqsobbyg1fBEPnX lT5Ao4o8b5PnEJL0ClIpKr85hb+UNbF18qwxv5zTte2Bj5qCpS01m3gtuSe0kQwTeqMG 2880ejcZ6GQbwv2vMZl45nkFZch6nn11g5jWzGLzXS2zp9cxgm/seKGcfvUIqhxOC4OC 7FMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ILPHDouYv9M+SbSnNMSZhanD0UTX9hqXqdyb/EndoyQ=; fh=PUuyDPm9Le+FTHl0+BTb5pbtORZVrI5/YwpWT+7fgfo=; b=YN9QaSs+7IYGRnAefBCPxzGCt4h5t/1k5a5/JF1xUSXK5qPActt+aJTc9ak71zdqyU /3Xa8nOIHbUp08xpIYigreyjjUaOn9Co4rJFNdLCjIdwFUkD46zUtxoNn2CgJEiKalzT u8BgMGJeR/TUC7IRVE7vJ4IGtZZCe2b1IfuUvKcQrAh3bp+2JWuwnXPl0KHgb3GZt5n1 kZJpvVbD2XcITkAbNEdaJXIcJGs7wfn+cdHDrmEHcKhp0RilZA2P0vAIlMiG8JeuUaO6 SouMvSYIOsOmdMT+p/CntnEBjAG6+83qsmzixfBEdWUCJQn8qa7ms5EyFMx1Vj49eORW pCKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ITXwuNHO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n4-20020a819c44000000b0059f840d7156si15764900ywa.458.2023.10.26.05.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 05:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ITXwuNHO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7CD6C82DAFF6; Thu, 26 Oct 2023 05:24:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344879AbjJZMYT (ORCPT + 99 others); Thu, 26 Oct 2023 08:24:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjJZMYS (ORCPT ); Thu, 26 Oct 2023 08:24:18 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6487EB9; Thu, 26 Oct 2023 05:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698323056; x=1729859056; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=z0GV2vhjs9lB5jYaMXp0AfM1dB/lKUlw9QbqlDS0z9A=; b=ITXwuNHOGV5WngS5ykFVlrrmfav+Q7Ql1Ag248KsYir4OW2IwGyzejbo DeZFuTNq96oygXXRn1FBtXt+6hXTbVTkF3yJuQl4hrfow/5jtAIn5nwpE yiYZE3brGNH6kF2+wBMFz29soj+Ojq2qIm0Su/OHmmyFJwJpr+tL5kzTT mPja9W+GjdWbaNdFBABqe7pPNR8sk0XOIPYRjfMpbNanhzbkKfIiwrNA8 hcSeyyW1HwIlaOrN/XVQQ6Y+IEJQaMgVMW57kLWMNi1NG/Yy9hNBSvq2F 2Wjol9DUwLp2LcMCJbSv9k0yqKYNuDsIhIy9ldUcT2WjkqWbOCxmPEMMZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="386420829" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="386420829" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:24:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="882788641" X-IronPort-AV: E=Sophos;i="6.03,253,1694761200"; d="scan'208";a="882788641" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 05:24:14 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC3) (envelope-from ) id 1qvzPH-00000008qr4-30G9; Thu, 26 Oct 2023 15:24:11 +0300 Date: Thu, 26 Oct 2023 15:24:11 +0300 From: Andy Shevchenko To: Michal Wilczynski Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, rafael.j.wysocki@intel.com, lenb@kernel.org Subject: Re: [PATCH v1 4/6] ACPI: acpi_video: Replace acpi_driver with platform_driver Message-ID: References: <20231025111806.2416524-1-michal.wilczynski@intel.com> <20231025111806.2416524-5-michal.wilczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025111806.2416524-5-michal.wilczynski@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 26 Oct 2023 05:24:25 -0700 (PDT) On Wed, Oct 25, 2023 at 02:18:04PM +0300, Michal Wilczynski wrote: > The acpi_video driver uses struct acpi_driver to register itself while it > would be more logically consistent to use struct platform_driver for this > purpose, because the corresponding platform device is present and the > role of struct acpi_device is to amend the other bus types. ACPI devices > are not meant to be used as proper representation of hardware entities, > but to collect information on those hardware entities provided by the > platform firmware. > > Use struct platform_driver for registering the acpi_video driver. ... > #include > #include > #include > +#include > #include > #include Despite this being unsorted I would squeeze to the most sorted part of it, i.e. with the given context the new inclusion is good to have after dmi.h (but in full context it might be even better spot). -- With Best Regards, Andy Shevchenko