From patchwork Wed Oct 25 11:18:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wilczynski, Michal" X-Patchwork-Id: 15867 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2523505vqx; Wed, 25 Oct 2023 04:18:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbJ9G1ch0uAvjSwjtBzQVSoa3lpt9v+ytG38VU2ttv4MYcpc1zGi71ybmZDO5yb8QIiI5K X-Received: by 2002:a25:a243:0:b0:da0:48e0:ca with SMTP id b61-20020a25a243000000b00da048e000camr4354407ybi.29.1698232738029; Wed, 25 Oct 2023 04:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698232738; cv=none; d=google.com; s=arc-20160816; b=ZYdUWeSdt8txDMjtDzxEJO8Jr1Vvgq3gmsl5G0XXqZkTqwjJBmimCr54nfOFVsDCiJ pnUZBZwdviYedM+J3ntsM3MrjIWS7Axdf0tGoS8kpim8CCd0Y+kLmJuD5Dw/HnD0bDe5 lroPsCqGZjbqmpbceRENl82MoK2fBU7a4syjQpKUhvXh9lz4w62ZHqDgEN3WLkujkP3X 3rUg29scn1o79bOlk/sm00e1eBA+rUDX5ie83+ZQcKdD2UetSet4qfceJGfArgjcv7Oy SCNSBg+HgaSy7TvKqR1zCjp35c/L4zUW7iX2jO0D1PVH4L2D5+j3/Vdp9fOz5e0qZ9Qb L+qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bOyaL4SnmaYLzfrjYWdtFnufWuu27Cc33Lw9AQ79qNI=; fh=yqoav7EnEdJ2mT+rtoecryk3HwWdUT86ZBxH2AVEvUc=; b=Nn1x2ldLnqSTM6ByL2kVNgaKConlcuqnygh2kT6SqTB6fNRbMmaXpIyqN39bN8u6Bp Hj+ouaa+Z3z1fmZMaDOQEVB9DgwmIsP6kDSNduTzYDk5YIg8vYRJqQo+Jndqht6uNFbW xVqsJwbz+5TOQm6iKacPFqxHb5QLedPIfgFCSz1aAX1Z4bEIRHzYoCZ+Ub3778woQ1Bl 7A2BMpYIi6mThhmBhWDZI+HzZq77HAKCvLCoo9ul+YN2bhmzc+wZfIK7k8BfmCdXzSul Z4EUhmfWBqFaSEQpLmPTDIT3ZAG46r+Fc8JixRwSulPbscFj6Fn3Ptj+EIYcKrdzwNiK lEoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DYHD0J1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id 72-20020a25044b000000b00d867e0791fcsi9785182ybe.402.2023.10.25.04.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 04:18:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DYHD0J1g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id EF6BD80C4D4F; Wed, 25 Oct 2023 04:18:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234261AbjJYLSi (ORCPT + 26 others); Wed, 25 Oct 2023 07:18:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233782AbjJYLSg (ORCPT ); Wed, 25 Oct 2023 07:18:36 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A13128; Wed, 25 Oct 2023 04:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698232714; x=1729768714; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OZVkAUofT4Hs3fiP8QhnOHXLA4XmUAOuacC4kM7ypAQ=; b=DYHD0J1gPKhNl72hYwAQNHnPHbBAh3KN5c1ffLUD3IrTXW/kD1GNEUBS Beq0T8mBmkJ8wVPuzlN8BiAhsR5eEuFEaJ/LUVgoJG9zFGKAUiZY5FC7B NFZu0Sx6sv05EaMLyDezaw/vlFtBrHH92rKFq0McMz+44CsskzGdXMmlR itVrux8IjfS7tcZW0SlPHBCFyrJXOb5j4/4dffRVmaiWCrzX19P+TTwmP rqiieHO/5ahi0TPSPmlgUm0yB69TaK+8X/sVuAhTj0lOz6ApCbMFVUsRN 4sKNndjbNcyYKDDG7cPfMWXr6cIiLVnbMiABPm8lZTsYJTBbSuqAD4Kwm g==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="391154604" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="391154604" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 04:18:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="762425060" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="762425060" Received: from powerlab.fi.intel.com ([10.237.71.25]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 04:18:14 -0700 From: Michal Wilczynski To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: rafael.j.wysocki@intel.com, andriy.shevchenko@linux.intel.com, lenb@kernel.org, Michal Wilczynski Subject: [PATCH v1 0/6] Replace acpi_driver with platform_driver Date: Wed, 25 Oct 2023 14:18:00 +0300 Message-ID: <20231025111806.2416524-1-michal.wilczynski@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 04:18:53 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780726091320124570 X-GMAIL-MSGID: 1780726091320124570 This patchset is a continuation of efforts from [1] aiming to replace acpi_driver with platform_driver. To ease up review effort I'm sending miniseries per driver, with a replacement patch + various improvements that were noticed by me, or during internal review. This mini-series takes care of acpi_video driver. [1] - https://lore.kernel.org/linux-acpi/20231011083334.3987477-1-michal.wilczynski@intel.com/T/#t Michal Wilczynski (6): ACPI: acpi_video: Remove unnecessary checks ACPI: acpi_video: Use yes_or_no helper instead of ternary operator ACPI: acpi_video: Remove unnecessary driver_data clear ACPI: acpi_video: Replace acpi_driver with platform_driver ACPI: acpi_video: Rename ACPI device instances from device to adev ACPI: acpi_video: Fix holes in acpi_video_bus drivers/acpi/acpi_video.c | 101 +++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 55 deletions(-)