Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1241674pxb; Wed, 10 Feb 2021 03:50:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKyqiCndzdvIK0J+PBwG66Yi1s+lyyCxDzJSrsKY+AzgiT5lGGJTYDeYWwfbopBdDJ920A X-Received: by 2002:a17:906:fa18:: with SMTP id lo24mr2490998ejb.221.1612957851854; Wed, 10 Feb 2021 03:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612957851; cv=none; d=google.com; s=arc-20160816; b=W9JoJB1aSvjyP387rki3/Hcm7eyMOAmwKNCGeLUU2UG5Oywwe+u6XvyIYJz7R+aq2h FbyRTiH5dcvIEG8pznTqizM+3rrz4K2q21J9vILZ97vE14TXDur+HUeesmr3kRmHq44C ekobmLM2q7X0/+hW5i0JQGu0W+e+IyYhITVeCDb1jjRvHZVIErc4xX5Egmhxnb+qaFQT MPQVdCRTeHYUX7alUmohiyoJC2JfvcUfvdlujqz30i2Qv3mYHD3rwv5utSWmhAQFa54Z nbj5VkZuiLqBvTt0zut/C7B8nmx1V7cO0KlRea3BsAlDL2z+UPHaO4bAQPTw+/RoEYqv 0xew== 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=nqA69jB6n2a2IGLNbKloVBy7MVLmzeI/cF0BuSKlxfE=; b=SMq1H+IM77b3JM86ieVfO/8QEY8pY/M9D9sIU7XxpOTp63KSzUpE2YjPdFsxV7CmUM vVt3w0c0rMmHOBTVoTH27MWqHR66VYIej7pidoN2OWG17ZxmoWzspfwLcA6MqO71gziw m4/CNdzERRbhGbQ/oRGqXfpoRhIhoIWmM9w72TfKb1K4OxU5snFyFOFiJpNS3T3GnveK 5vHRh5KZBC+F6MeK+Elt2/mvHOaAgc95l4ry44ofbaCexpHIF/B1XRjoDljkKN/hZK9V HzfVw/88ug95uKyRb1c97uESyA29d1cTBBXJ2WiLy2KIhDMkVV/sb9wjCFxqVoHWXuX/ VY4Q== 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 m6si1456932ejl.63.2021.02.10.03.50.28; Wed, 10 Feb 2021 03:50:51 -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 S231432AbhBJLsV (ORCPT + 99 others); Wed, 10 Feb 2021 06:48:21 -0500 Received: from mga02.intel.com ([134.134.136.20]:64421 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230155AbhBJLpl (ORCPT ); Wed, 10 Feb 2021 06:45:41 -0500 IronPort-SDR: 1aYOGg/K/Ex3vHeDXzuozZwtk0JrzUZ3DruK0+HDrJMI/2jMRN6jgqdro7iGV/Fd7soMmUf3UH CLQGztS5vZ2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9890"; a="169181910" X-IronPort-AV: E=Sophos;i="5.81,168,1610438400"; d="scan'208";a="169181910" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2021 03:43:34 -0800 IronPort-SDR: hzriPaiTvPDGjGnUl4bRhI8m1Oq29jgVSXM808k8fIuX9gZl2HzVVE3fPWbJySWVkUlDIoLVVf qWJSOYZ4hv7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,168,1610438400"; d="scan'208";a="488729857" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 10 Feb 2021 03:43:33 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 35C32DE; Wed, 10 Feb 2021 13:43:31 +0200 (EET) From: Andy Shevchenko To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Len Brown , Andy Shevchenko Subject: [PATCH v1 1/7] ACPI: property: Remove dead code Date: Wed, 10 Feb 2021 13:43:14 +0200 Message-Id: <20210210114320.3478-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 24e87b630573..d9f3132466b5 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -829,20 +829,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) - 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) { @@ -973,12 +959,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