Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2639099rdg; Mon, 16 Oct 2023 10:07:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQ5Nu+q4NkwXBo+m3PKXk/hKsfaGoLDdmNCGq9WDIl6TgrhW5RnXT1nwfCl/rQphXtFp+V X-Received: by 2002:a17:902:fa10:b0:1c3:9928:7b28 with SMTP id la16-20020a170902fa1000b001c399287b28mr9254595plb.6.1697476031669; Mon, 16 Oct 2023 10:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697476031; cv=none; d=google.com; s=arc-20160816; b=Dg182Uxx46fD3hVT6h6das2GrJkDQBXX5kFwUzOicXAeJs9iP5sGySPUNtwCTH322l X35kAFtkHDzJW5oC29pcXgD6+z322kLP9OynByai2HMsOjRQUhbYjCYWhbJIPYfcxqJh uMcEIGfvh1oWFE6s4rNrCUr+xE36P7rKk1zdiDXdXY9G51FiGNJK3vxLym3+o6XYW6F9 2wiMOsbFrMdd+FN9BRhOv9nx0TSfV7l62wLSAKaeOSTngadVVKrjPb8aqN29X4INcQ+N A9sli1/0uv83KTjWPQR7iJgqbYfBRHhm6YIlFB6hmgGY7CKQ5vvEkZywmbOLhSbIsHek bysQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=snKV5Mem1XSmPuyTwd9rQwtevjKsTw9FmENnyH+tWVs=; fh=yqoav7EnEdJ2mT+rtoecryk3HwWdUT86ZBxH2AVEvUc=; b=haDcwqOqL6m+9BlQRjs5jSc3Bg8g2zmb9mOSFytj45NgxjrUv5kxHkCni1wGs+lyMm 1dDO16kyWAji1FkBiydKSqSMRwegAoVt/ykxmHh6LEtMC7ZvDbB9WU0eIgXnmKIGX0it ddmKpBBmy+CkAUHghQ90S6oBq9iJ17E3Wqe22uhQzfcahcSluurwmpObJ+gXnjcD6jzH oW3N3pLdCWkvOKHRgzCibStDksci3rJzHJh9fyhGRRWzc9tqwKi4GPUMzTmuwOrjXvik FFPzQmKN/hmnS+9aShEGxjPNpX7nYNCmXtztUuq6JDX5ReyjTvVvdi1GzoYcf77mCDhF NcOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="BvYa/iSX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id g21-20020a056a001a1500b0068fcf6fe22csi210848pfv.304.2023.10.16.10.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:07:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="BvYa/iSX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 70871807EDBC; Mon, 16 Oct 2023 10:06:01 -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 S234709AbjJPRFx (ORCPT + 99 others); Mon, 16 Oct 2023 13:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234543AbjJPRFW (ORCPT ); Mon, 16 Oct 2023 13:05:22 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9639132; Mon, 16 Oct 2023 10:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697475716; x=1729011716; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9oL22kUdP5wBHGbwrW3JNkABa1U23D68tubspO8rF2s=; b=BvYa/iSXvBdRBfRh3SYEN8F0BR7Lx8SWLCLMKJxlBRgMuwST1MFITrao Mv8hR7irNbIpBSrMyrjyp/skUQfjh3Ux/kqwOvK7kyVyxaScBndWkdBJX OItxgBOAPYWJ91Pg86Qg3yA6iQK4UrzJ6EjJaoN+93PdThIzfpPlhgqHt ruYM8nVI8Uv/CKaFNEny23xbtntolG5mMMJ/qgr6MkosYyfB81vbMr4f5 CiuS7ZOIAGKvq1qt09ZLU8OlGsd7rsHuajUEVu+9rNzVwzcWwXLi2dEMm i6W1VJFfjL4XpSCj4ufQQ/ShvG3jTFiXTjb/YWUtmUYZbhxflNsJs1syd A==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="385427298" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="385427298" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 10:01:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="1087133937" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="1087133937" Received: from powerlab.fi.intel.com ([10.237.71.25]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 10:01:40 -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 3/3] ACPI: acpi_pad: Rename ACPI device from device to adev Date: Mon, 16 Oct 2023 20:01:25 +0300 Message-ID: <20231016170125.576159-4-michal.wilczynski@intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231016170125.576159-1-michal.wilczynski@intel.com> References: <20231016170125.576159-1-michal.wilczynski@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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]); Mon, 16 Oct 2023 10:06:01 -0700 (PDT) Since transformation from ACPI driver to platform driver there are two devices on which the driver operates - ACPI device and platform device. For the sake of reader this calls for the distinction in their naming, to avoid confusion. Rename device to adev, as corresponding platform device is called pdev. Signed-off-by: Michal Wilczynski --- drivers/acpi/acpi_pad.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 2513028a0299..87cf2234ecd2 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -398,12 +398,12 @@ static void acpi_pad_handle_notify(acpi_handle handle) static void acpi_pad_notify(acpi_handle handle, u32 event, void *data) { struct device *dev = data; - struct acpi_device *device = ACPI_COMPANION(dev); + struct acpi_device *adev = ACPI_COMPANION(dev); switch (event) { case ACPI_PROCESSOR_AGGREGATOR_NOTIFY: acpi_pad_handle_notify(handle); - acpi_bus_generate_netlink_event(device->pnp.device_class, + acpi_bus_generate_netlink_event(adev->pnp.device_class, dev_name(dev), event, 0); break; default: @@ -414,14 +414,14 @@ static void acpi_pad_notify(acpi_handle handle, u32 event, void *data) static int acpi_pad_probe(struct platform_device *pdev) { - struct acpi_device *device = ACPI_COMPANION(&pdev->dev); + struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); struct device *dev = &pdev->dev; acpi_status status; - strcpy(acpi_device_name(device), ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME); - strcpy(acpi_device_class(device), ACPI_PROCESSOR_AGGREGATOR_CLASS); + strcpy(acpi_device_name(adev), ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME); + strcpy(acpi_device_class(adev), ACPI_PROCESSOR_AGGREGATOR_CLASS); - status = acpi_install_notify_handler(device->handle, + status = acpi_install_notify_handler(adev->handle, ACPI_DEVICE_NOTIFY, acpi_pad_notify, dev); @@ -433,13 +433,13 @@ static int acpi_pad_probe(struct platform_device *pdev) static void acpi_pad_remove(struct platform_device *pdev) { - struct acpi_device *device = ACPI_COMPANION(&pdev->dev); + struct acpi_device *adev = ACPI_COMPANION(&pdev->dev); mutex_lock(&isolated_cpus_lock); acpi_pad_idle_cpus(0); mutex_unlock(&isolated_cpus_lock); - acpi_remove_notify_handler(device->handle, + acpi_remove_notify_handler(adev->handle, ACPI_DEVICE_NOTIFY, acpi_pad_notify); } -- 2.41.0