From patchwork Tue Apr 16 15:53:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13632150 Received: from andre.telenet-ops.be (andre.telenet-ops.be [195.130.132.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 995E5132C1F for ; Tue, 16 Apr 2024 15:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282840; cv=none; b=VuYzrVJ2EOLRLwezNaUfhTvlKB2xKanLlr/tr/s2a/TqG3JRS8Nnhdg6g4+tJW8FDsuTNcSX/owXEi68hO02Awx5Xr2m96xuGkBqjV7SGqLLrQxP+6gCdV2BHM1slN5P/gNPq+3zLUdXJgDLG6/QG0JJTgmMam0pSMoA47rdN6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282840; c=relaxed/simple; bh=mfpRafmUuJiIQpfZ3GGN6ncw2AlHg6Tk4UtFfCKqWBA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=TKHh/fjHXKZ3BYOQWZ+PEmRYt4yJUssu3a+lg306klRHjOJK/h3MMKmA/kfVRPALi1dkxkBW/mnGbO//IAh6Hx0rndi1NEiIMafaXuWtRZYxeyaeQvY3rk9/RVxxRmxZE338rcKJafU3k5w+R3NUsCVoRF5zuNfQULg6Hmumu5Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:76d0:2bff:fec8:549]) by andre.telenet-ops.be with bizsmtp id Brtp2C0020SSLxL01rtptB; Tue, 16 Apr 2024 17:53:49 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rwl7R-008Jte-Hk; Tue, 16 Apr 2024 17:53:49 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rwl80-00Ebsc-Vf; Tue, 16 Apr 2024 17:53:48 +0200 From: Geert Uytterhoeven To: Greg Kroah-Hartman , Biju Das , Yoshihiro Shimoda Cc: linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] usb: renesas_usbhs: Remove renesas_usbhs_get_info() wrapper Date: Tue, 16 Apr 2024 17:53:45 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The renesas_usbhs_get_info() wrapper was useful for legacy board code. Since commit 1fa59bda21c7fa36 ("ARM: shmobile: Remove legacy board code for Armadillo-800 EVA") in v4.3, it is no longer used outside the USBHS driver, and provides no added value over dev_get_platdata(), while obfuscating the real operation. Drop it, and replace it by dev_get_platdata() in its sole user. Signed-off-by: Geert Uytterhoeven Reviewed-by: Biju Das Reviewed-by: Yoshihiro Shimoda --- drivers/usb/renesas_usbhs/common.c | 2 +- include/linux/usb/renesas_usbhs.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index b6bef9081bf275f0..edc43f169d493c65 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -613,7 +613,7 @@ static int usbhs_probe(struct platform_device *pdev) info = of_device_get_match_data(dev); if (!info) { - info = renesas_usbhs_get_info(pdev); + info = dev_get_platdata(dev); if (!info) return dev_err_probe(dev, -EINVAL, "no platform info\n"); } diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h index 372898d9eeb00bbc..67bfcda6c7d2779e 100644 --- a/include/linux/usb/renesas_usbhs.h +++ b/include/linux/usb/renesas_usbhs.h @@ -194,9 +194,4 @@ struct renesas_usbhs_platform_info { struct renesas_usbhs_driver_param driver_param; }; -/* - * macro for platform - */ -#define renesas_usbhs_get_info(pdev)\ - ((struct renesas_usbhs_platform_info *)(pdev)->dev.platform_data) #endif /* RENESAS_USB_H */