From patchwork Wed Oct 18 19:09:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wilczynski, Michal" X-Patchwork-Id: 15564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp5010246vqb; Wed, 18 Oct 2023 12:10:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEL1PfL+wjiwJb+lEWxVX6gBkyIrYERJlxlw879zO8jcYjk+P4WTGUp/U5txReyDrbb4hgB X-Received: by 2002:aa7:8890:0:b0:6be:16c7:e74b with SMTP id z16-20020aa78890000000b006be16c7e74bmr6657106pfe.18.1697656232932; Wed, 18 Oct 2023 12:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697656232; cv=none; d=google.com; s=arc-20160816; b=F5Pzpe6jnWVZSRDz5k0geoyUuAF0VnVbYJB9xrDM7No4/4LH00Aqh6YcgeCHes/uQD 3ETt4x9PaL1Re4E8AX83Ea+7D45ISSLvD3/2jRedLzMLTMjWfwYYXY+SHr4Ur30TllLm /t9/VkOJyAhW6bnMnxgvyghPHD/t55TCUb7Rl0BZIP1eh1I0bFtI9IXgkC8exL2UQNnP EXp509JvhDcs3tJCJl1dsUp2M22SJA4QdMvgOs73KVx9c+MQCg/otfhkPXmgIGlaL/cm cU10OsYPkHByMi9U89edherVp81VDaj168JXCC4yqHY+mw0IaePQyD4pYxg4ETqZ5HTA BwQw== 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=VAENHSM+2Ir6uyn+gmukpaeU0qahctmsNhyGRoraJlU=; fh=yqoav7EnEdJ2mT+rtoecryk3HwWdUT86ZBxH2AVEvUc=; b=GGTqPLBfK3cnQBiKtWt1SJc4t0NfQCgUslpRGDfc2pOx+tD3UGvdMhW6nBfVU3Hpg1 JofaYmk7G8Vi/V+5PmyxlOj8MTTJgBLJbr0x6HCav1Pjny5pZLfPniaep29sht7+JpZd 3+wABtuPNf7crNxKLe1OZ/wfZ+JgBiVrk0A8D9zTzPYQGPtkKzRfY+dhdEFBuB9zNnxa a3eGgbnJ741UQugYjCP50ggLCRyb3JxAjYVb/1xCpOgSAus1NVAiX/op1N0Fbx+xzyPr H2cctb1qrYPj1zqP239tNLoAIw3+NQzr1eaQnIQepApXNz2Z43waVHsWDuTp6r+GpGJp vUcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gPApd0Jy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b15-20020a63d30f000000b005b81f21a25csi2829789pgg.830.2023.10.18.12.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 12:10:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gPApd0Jy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id E80D181B93E9; Wed, 18 Oct 2023 12:10:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbjJRTKN (ORCPT + 24 others); Wed, 18 Oct 2023 15:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbjJRTKL (ORCPT ); Wed, 18 Oct 2023 15:10:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0BD811F; Wed, 18 Oct 2023 12:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697656208; x=1729192208; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=AZUecB5QU3YRVFjpA+BfFj4FQml103oMvulQUPI1rBM=; b=gPApd0Jy1TrXP18KDEj+R7n/EBmHi9C3RTjMiUmglUQgaiu63vjK+D/X MhB3/pJHuORHVctiBVh8vHyKUTuGyPaxKTVYxa6rcrhqxaDmQeHiO9UpP MWGQACgzHDpjsEhF2NuFi8T/3yMYG+IYdEP7Ir/umEsg1AIjehA9T2Sdg 5p4CqN6csNz3FshRDOGm3NNir2QKjOlajrxmh7Foha2eqvU0/XiFrVLjN WFSm5yKUaD2msA9/NgOyPm729ql1EcZ0Vn4qixLv8ywss8IsxqSRV9H68 5pTMeWkkGbRRg77WdVdmszEhbFCUJpby4vF/5P7HFRXyFN3lmHe4sJ2UU Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="472323309" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="472323309" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 12:10:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="733277256" X-IronPort-AV: E=Sophos;i="6.03,235,1694761200"; d="scan'208";a="733277256" Received: from powerlab.fi.intel.com ([10.237.71.25]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 12:10:05 -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 v2 0/3] Replace acpi_driver with platform_driver Date: Wed, 18 Oct 2023 22:09:42 +0300 Message-ID: <20231018190945.252428-1-michal.wilczynski@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 12:10:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780121581954066829 X-GMAIL-MSGID: 1780121581954066829 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_pad driver. v2: - removed all the unnecessary whitespace changes from first commit - removed changes to acpi_pad_notify(), and installer/removal handlers [1] - https://lore.kernel.org/linux-acpi/20231011083334.3987477-1-michal.wilczynski@intel.com/T/#t Michal Wilczynski (3): ACPI: acpi_pad: Replace acpi_driver with platform_driver ACPI: acpi_pad: Use dev groups for sysfs ACPI: acpi_pad: Rename ACPI device from device to adev drivers/acpi/acpi_pad.c | 82 ++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 51 deletions(-) Reviewed-by: Andy Shevchenko