Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2972034pxb; Fri, 12 Feb 2021 06:17:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwO59bnasnR4lVVweglJX8PyAVwlcR8+BIDvGNTjD3ao3G66NoMZifs37rbrEk9MFE9l+7W X-Received: by 2002:a05:600c:4285:: with SMTP id v5mr2908696wmc.59.1613139448627; Fri, 12 Feb 2021 06:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613139448; cv=none; d=google.com; s=arc-20160816; b=kXzxlSkWBgau4Koelvil5y0iDibVS5e2m53jSUHe/LByX+BUeS7BFmI3huvBmWDDwf MvE/tGnS5DDKx0rVdUxC04lhYUU3Xbcuww7BeQHjfnvM2gQ9EHjqaiYwmGdBComvmVjm kqazj13PdgZ6F1xz9Lb5CP6RHxsh4a8J7HM1hits7p5hprRlevQYhZKNey6ndWdRSXfn pVtIRgqGdF2Q2A+R9W/EWzFpvSCIVS/xOtXx9Yz0oHPFmpLqwFb4Jp1OPILdNUswNAxc pRCEH9+EkasXcpp2scsNXMPXtfKvkKP6Ajlb9l8Q/ecxjkQYxlv/cMupUgR3/2SCiNs/ ymXg== 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:ironport-sdr:ironport-sdr; bh=+qWn2tmENApVK3nJsFVtFDAoUxyGBSbOo3ncBYgvrXw=; b=TyT71p6OByBZmp0X0jPSAQKtESUmjLypWc56P23iW0JQuh5PAaeJXHTHSqQV8fJyTz amsGvt4hXJPtDCXz+F+Ar9czJKeKs3qwHwxH0ZsxXW2gxXpBtCEezRVIji3BtiTx+y2i Xpjnvioi91CZt592TdqChvGlyNXRz/QQAOqWog3Rh4f1U9S8L3VBalpPJ64ZmO0Wuy7r aEV3E7f7niXuPaOSHdK3Ca0o1Xdo8cmEPPj8S6njoPYXREXMXtH5Uqeh2Ef7ZbVtX0k5 JHA0wrU3REKo5DPxiGgAhh11vqHs5gdMP7IxVt83dqBX3STY/Z4PniiAnKQzoWisrIZ0 bHuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk8si6345274edb.76.2021.02.12.06.17.05; Fri, 12 Feb 2021 06:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231902AbhBLOQL (ORCPT + 99 others); Fri, 12 Feb 2021 09:16:11 -0500 Received: from mga07.intel.com ([134.134.136.100]:44203 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231571AbhBLOQJ (ORCPT ); Fri, 12 Feb 2021 09:16:09 -0500 IronPort-SDR: vkN1Yn4D1SP2TQwRaKUt/HpTc0fhwgnOM4VlfqQsYtiPoNfvCPKgGT6msQhA3UoweVRe+kubCW WAVcyrcPWSaw== X-IronPort-AV: E=McAfee;i="6000,8403,9892"; a="246483866" X-IronPort-AV: E=Sophos;i="5.81,173,1610438400"; d="scan'208";a="246483866" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2021 06:11:37 -0800 IronPort-SDR: Vnbi98rWZkRC5kJFiofmHLLfUjTgbAT93qCiMWpT+49pc/1njkt/Cy+CxapPOw1FqsC6NJyYfw vM7FGNIhVd0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,173,1610438400"; d="scan'208";a="360386122" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 12 Feb 2021 06:11:36 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 87D161FA; Fri, 12 Feb 2021 16:11:34 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Len Brown Subject: [PATCH v2 1/5] ACPI: property: Remove dead code Date: Fri, 12 Feb 2021 16:11:17 +0200 Message-Id: <20210212141121.62115-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After the commit 3a7a2ab839ad couple of functions became a dead code. Moreover, for all these years nobody used them. Remove. Fixes: 3a7a2ab839ad ("ACPI / property: Extend fwnode_property_* to data-only subnodes") Signed-off-by: Andy Shevchenko --- drivers/acpi/property.c | 20 -------------------- include/linux/acpi.h | 21 --------------------- 2 files changed, 41 deletions(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 16b28084c1ca..22ccab4e7c6d 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -841,20 +841,6 @@ static int acpi_data_prop_read_single(const struct acpi_device_data *data, return ret; } -int acpi_dev_prop_read_single(struct acpi_device *adev, const char *propname, - enum dev_prop_type proptype, void *val) -{ - int ret; - - if (!adev || !val) - return -EINVAL; - - ret = acpi_data_prop_read_single(&adev->data, propname, proptype, val); - if (ret < 0 || proptype != ACPI_TYPE_STRING) - return ret; - return 0; -} - static int acpi_copy_property_array_u8(const union acpi_object *items, u8 *val, size_t nval) { @@ -995,12 +981,6 @@ static int acpi_data_prop_read(const struct acpi_device_data *data, return ret; } -int acpi_dev_prop_read(const struct acpi_device *adev, const char *propname, - enum dev_prop_type proptype, void *val, size_t nval) -{ - return adev ? acpi_data_prop_read(&adev->data, propname, proptype, val, nval) : -EINVAL; -} - /** * acpi_node_prop_read - retrieve the value of an ACPI property with given name. * @fwnode: Firmware node to get the property from. diff --git a/include/linux/acpi.h b/include/linux/acpi.h index ea296289a94c..14ac25165ae1 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1121,14 +1121,9 @@ acpi_data_add_props(struct acpi_device_data *data, const guid_t *guid, int acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname, void **valptr); -int acpi_dev_prop_read_single(struct acpi_device *adev, - const char *propname, enum dev_prop_type proptype, - void *val); int acpi_node_prop_read(const struct fwnode_handle *fwnode, const char *propname, enum dev_prop_type proptype, void *val, size_t nval); -int acpi_dev_prop_read(const struct acpi_device *adev, const char *propname, - enum dev_prop_type proptype, void *val, size_t nval); struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fwnode, struct fwnode_handle *child); @@ -1230,14 +1225,6 @@ static inline int acpi_node_prop_get(const struct fwnode_handle *fwnode, return -ENXIO; } -static inline int acpi_dev_prop_read_single(const struct acpi_device *adev, - const char *propname, - enum dev_prop_type proptype, - void *val) -{ - return -ENXIO; -} - static inline int acpi_node_prop_read(const struct fwnode_handle *fwnode, const char *propname, enum dev_prop_type proptype, @@ -1246,14 +1233,6 @@ static inline int acpi_node_prop_read(const struct fwnode_handle *fwnode, return -ENXIO; } -static inline int acpi_dev_prop_read(const struct acpi_device *adev, - const char *propname, - enum dev_prop_type proptype, - void *val, size_t nval) -{ - return -ENXIO; -} - static inline struct fwnode_handle * acpi_get_next_subnode(const struct fwnode_handle *fwnode, struct fwnode_handle *child) -- 2.30.0