From patchwork Tue Feb 18 19:32:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389335 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 910ED17F0 for ; Tue, 18 Feb 2020 19:33:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6E1A324125 for ; Tue, 18 Feb 2020 19:33:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="OvB7Kyfy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbgBRTdS (ORCPT ); Tue, 18 Feb 2020 14:33:18 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42059 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbgBRTdS (ORCPT ); Tue, 18 Feb 2020 14:33:18 -0500 Received: by mail-wr1-f66.google.com with SMTP id k11so25371511wrd.9 for ; Tue, 18 Feb 2020 11:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9nGneN4FF9FG4UqBBakQfwNSGfoHUIS33OCajZHkIHc=; b=OvB7KyfyEVZHQJfu/Zd/LprOMDUmwxj14FNKr6Qv5XAFcb22USOTj1kGcVyzSm2RXH GOHieY/yIwsFCWpLr7XeqeJFhQ2DHcc5hfwydTprXHOaUcga3Qr6pHSjYIrf/Q6XSqNs StC1ITm1/WWYjQjMd/IQgYHp8BYmvOMfPS8J4ma59IkWd4rpCEd0Uqlh8eApv6pRHK6L Am+CSNySXgEsH1c6DqlpNBEoavoJxGyRh4mZ2ettOdwynUmBA/cwJRYpCMtcG7mCrbWt I+x9br1lCHlQvuXWsY3Jxq1xXA6B97Pj2unGQN7+kNssu99Qej/NoUcH2bdCd8hY0V8+ tEYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9nGneN4FF9FG4UqBBakQfwNSGfoHUIS33OCajZHkIHc=; b=mMzcGnZDY6uAyqxCpcr8TQURoES5zCnfoI+aylLXBUhbt41SP8eEOuAEw8bDdvMIlo RhW970GWYkM8KyA/RcU5I6pltlYD8XT8+h/Hm0Ym65IKt/6Dy3h3aRVHwW05zkgHvxtf MaGqK9BVm93MAtFtBc+Sx9Hr4IMD9ZeV9P9wjr3XtoxbsmuyU3n5A6WIAMTNpKtM4Gqs PNE5FJB5T8ac4G3hQnIcCFqnYQiZp2KZj362DL5Gyfm7Aj9/tL2dE0rAooUjSWOj3tQN Ecq0KBH63x12oV5uF9e9joKVTKx40Ho6uS4A0nogVCApzBU5pn9/6Et/ktD+bZTWdYYe Z2gw== X-Gm-Message-State: APjAAAXl528hdU+bTcNMzqlzhktcAlDTUYC/wEreIG96nbdQKSJHmPvr w5aZ6bCh/15X0ZrE0KEbhIWfRA== X-Google-Smtp-Source: APXvYqw3rW1kRcZH/PRtRWgPRBFpvvRAhqVbY4TEosssX4QTBJn9TlTcWsGkj8OA5iYx8iCEg6BUZg== X-Received: by 2002:a5d:6b82:: with SMTP id n2mr32891365wrx.153.1582054395840; Tue, 18 Feb 2020 11:33:15 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:15 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 01/20] usb: gadget: legacy: gmidi: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:44 +0000 Message-Id: <1582054383-35760-2-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org usb_composite_driver name is const char pointer, so it not useful to cast longname (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/legacy/gmidi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/legacy/gmidi.c b/drivers/usb/gadget/legacy/gmidi.c index 9eea2d18f2bf..265c392810d7 100644 --- a/drivers/usb/gadget/legacy/gmidi.c +++ b/drivers/usb/gadget/legacy/gmidi.c @@ -174,7 +174,7 @@ static int midi_bind(struct usb_composite_dev *cdev) } static struct usb_composite_driver midi_driver = { - .name = (char *) longname, + .name = longname, .dev = &device_desc, .strings = dev_strings, .max_speed = USB_SPEED_HIGH, From patchwork Tue Feb 18 19:32:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389337 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5A13930 for ; Tue, 18 Feb 2020 19:33:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9595B24656 for ; Tue, 18 Feb 2020 19:33:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="2O7QCmf9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbgBRTdV (ORCPT ); Tue, 18 Feb 2020 14:33:21 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52587 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbgBRTdT (ORCPT ); Tue, 18 Feb 2020 14:33:19 -0500 Received: by mail-wm1-f66.google.com with SMTP id p9so3989954wmc.2 for ; Tue, 18 Feb 2020 11:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GIsVr9Du1tvwTcb5uCrDYvsZclteV5H/OmCi1XkJbsI=; b=2O7QCmf9iFPFkRv0VE4t1kzuscHCsPiDVYzPZdeRD/9yAPEt88zBVFrmtSMmlZ3421 rsxYMRWVL65/PAVSI+vSUD4Mc5D6Q71LrCBmrFVh6CoqVkFk9c3CPvosbjK7rSBUbtzg x+J0N0FjpraNAXztDPn6ZHeBPGRkfGD+mJZrT3LOlUMtdJVb4THClxuIne79PZiKtf+p Axb1FxrlwfXgmNaVy7zxMnu5Q9ueOgmTV01D2AX1SHUrRlJsXeBZN0BcRyLyeZdghWF5 wx7bviISHxlfdi0b8mECPUKlhhT99egizBIh0rpqYep8hAgoOE9ZcK0pS/38Pb6BzwN0 Q2oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GIsVr9Du1tvwTcb5uCrDYvsZclteV5H/OmCi1XkJbsI=; b=tIYHAHu340UXjhcCohZ8r/E48Shzdm8yhGIsP0VSAgz1CTjTA1ya1dzDYqSQDDB/3g jh1n1zfdflEvBO/uSp7IkeULCS2IC1NVXZ85IyR91nGbZw33FNgS1X1adGYynzs9RVvm VdWhrvtzg1cjDquGc1yNWkJVpjsE9GoPmgKudBnL20whjwW6FPFr7eNDFcQIPfQB7PNx 5GBg/RGi8H053AEbhDXj/Xj4Kr7rsDr0canzlsd5chu/RR7sDiV4vHoXogncrsiwvG/b +g/AjeM2p1f3IyL4vYqaKEsob2H4UfHDGJaDu3v9yrN1jW3q2vBfnQ23qUQajkCQNVkd OyUg== X-Gm-Message-State: APjAAAUvWpRouMAl3FkEjIf3HvqcFEkYajcKEmzmd95yQxs9YpMMzeSj BSaFEps7ZG3kDvLh6duEuLivyQ== X-Google-Smtp-Source: APXvYqxR5PXmj0VVyv0YT2k0zGTYVu+qYbvCaTD7nmPRrFBNPj3tgodO+1GzG5jCiyAA9mno7qDhuw== X-Received: by 2002:a1c:1fc5:: with SMTP id f188mr4899137wmf.55.1582054396803; Tue, 18 Feb 2020 11:33:16 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:16 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 02/20] usb: gadget: legacy: inode: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:45 +0000 Message-Id: <1582054383-35760-3-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast shortname (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/legacy/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/legacy/inode.c b/drivers/usb/gadget/legacy/inode.c index b47938dff1a2..e3dfc2180555 100644 --- a/drivers/usb/gadget/legacy/inode.c +++ b/drivers/usb/gadget/legacy/inode.c @@ -1736,7 +1736,7 @@ static struct usb_gadget_driver gadgetfs_driver = { .suspend = gadgetfs_suspend, .driver = { - .name = (char *) shortname, + .name = shortname, }, }; From patchwork Tue Feb 18 19:32:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389339 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5910B138D for ; Tue, 18 Feb 2020 19:33:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 38A4024656 for ; Tue, 18 Feb 2020 19:33:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="rxlXAX64" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726582AbgBRTdW (ORCPT ); Tue, 18 Feb 2020 14:33:22 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41707 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgBRTdU (ORCPT ); Tue, 18 Feb 2020 14:33:20 -0500 Received: by mail-wr1-f66.google.com with SMTP id c9so25420559wrw.8 for ; Tue, 18 Feb 2020 11:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FhP33f76rG+2Qj5CzOw/Y5VWMBQgpWuzrnyIzrFTRug=; b=rxlXAX64TS/KCHzcquPeVDjrlKmhePjl7Da7rcF8lconyP93SOoeZRkpAzD8fKtmwN GyZ52w3D8vQQhcN0UUHGGogGIQCSCsYLLhHmeUAbg5p0Zi1Qe3hj+pxbxKIkp0WTEgti wG6PFqRUclRWAZQOQOFkcEm4BxOBBPj7tMZV63K1ptJfpRV6x2VWltJmPpPVgH7cPiRR x4UFbSTU64A9kFo4Be1Caj3s2qyIctoiCWCsBNZBuemmG2DOnqTlMNeLNYbRviohmz31 SUrXmmqVSlasXdBJbXfR+6bKA2L/2Fe2/3siHfd886mRj4AtRBGDMaayfe+49fq18sBZ rarA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FhP33f76rG+2Qj5CzOw/Y5VWMBQgpWuzrnyIzrFTRug=; b=dptV/i9J1c6bD6oA4H6+SwVGDpLRWx5otwfPUP0FNYg7e/gJUh9bY3uKrnhtkrhwqQ e/sYp2ldNsmtJRKF1bod9GdFn6U33sFSWgP5zhb7Hp2k37uEuJCjdV+nY8F1j9a/eS4X KGlDsed7cSf+1mjRqjHRbln3LuwoG9vk52MRYT7zFBq3bBLHKvoqBekKB6+ngkn0KsQL qKPbIsLPLQY17gBKTpq+pBnj8UpSIM6AadVx/kmkxncKrDQaTiV8kzlqxRTxO9qQrZHK 6h0V8AjklhixkjCgiz/+Kdy266RAxypFk98TIhTffSR1jRYvEOg+lDo7JvlI9yo+PNVH t2rw== X-Gm-Message-State: APjAAAVH+e2JTr+J7xYw71eM67+BxrqLzLf4DOACI+Z3ol41oGru1GUi pSu8F7UF/KkYBiiahfJZL43PxA== X-Google-Smtp-Source: APXvYqxhujNKLgxfrSjYnJS/zwBxDj7zsb/kp7GsJVcV6m1WCw9TcjWQNQ1Ew3Vn+k2gChJtTAvicA== X-Received: by 2002:adf:cd04:: with SMTP id w4mr32416868wrm.219.1582054397663; Tue, 18 Feb 2020 11:33:17 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:17 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 03/20] usb: gadget: udc: amd5536udc_pci: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:46 +0000 Message-Id: <1582054383-35760-4-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org pci_driver name is const char pointer, so it not useful to cast name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/amd5536udc_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/amd5536udc_pci.c b/drivers/usb/gadget/udc/amd5536udc_pci.c index bfd1c9e80a1f..80685e4306f3 100644 --- a/drivers/usb/gadget/udc/amd5536udc_pci.c +++ b/drivers/usb/gadget/udc/amd5536udc_pci.c @@ -202,7 +202,7 @@ MODULE_DEVICE_TABLE(pci, pci_id); /* PCI functions */ static struct pci_driver udc_pci_driver = { - .name = (char *) name, + .name = name, .id_table = pci_id, .probe = udc_pci_probe, .remove = udc_pci_remove, From patchwork Tue Feb 18 19:32:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389381 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 96B56930 for ; Tue, 18 Feb 2020 19:34:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7767B24670 for ; Tue, 18 Feb 2020 19:34:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="kAbhpKkW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726512AbgBRTdV (ORCPT ); Tue, 18 Feb 2020 14:33:21 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54294 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgBRTdU (ORCPT ); Tue, 18 Feb 2020 14:33:20 -0500 Received: by mail-wm1-f66.google.com with SMTP id n3so1790952wmk.4 for ; Tue, 18 Feb 2020 11:33:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MaLAtkjRxzJam7Y2UUkQL0f+cfe4YM8Rlep2oOYDR4k=; b=kAbhpKkW6Qgf8n1gsp1qpisZqrAfOgVqPywaJl9q0N7aQAo5i9LsHbxPp49sb2xW9A 3UCjfTTxyQH8SLjFsjhp3xFTTml+jboMB1DqnvKg1zVl0HouT6gjFlC67xr5nYu1SaAw 4d4lnUUHzNlYu4K0FkHR3WbjYIS9FAOCdZgsmIIclVEPxOtHXaJIphzy6XdFu2f1h0cp ilFXA8PK2zAUfhEGMkiouWb9K7PaU8ZbBf1h3DeM1hB0FWS4EBEAMvarMJsWWHESP6k+ yT3FIhr53D1jIio5A0NQ4eg4suK2ojST4Xw0YGA2DUUTij0M9ku6ffuhTAShAqvW3CGU SYSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MaLAtkjRxzJam7Y2UUkQL0f+cfe4YM8Rlep2oOYDR4k=; b=uPPUpsJjXKqdrmAT1xWAXp7Ny+lKvCvLYLv+QU2e1NnG2rYt97F/ct49/s64FeKI81 Eg6/JdfR/IsbZ3j5w3+2DsxXOez5+VIDwlzl7qNPzvXJXlmXLgtm0AjYFpp7SUmWyFQf W/DWLzBVpNUJL5cDpr97PqAnJINZhLqZR3a3Lx5AJb5rJRIsZw9SMV6vQ8cBvvcn1AFE ugXCjWVXNvDL6WkwT1ISx7fCkO/ZP8goN0mLEHJtUZDEGSvA8xxy2bvHjK5wke2152/7 JjLaaUzQMx6vkaRt1eqfAyPDTA7RHytlF2bAjqqhz7UTSMa36nTkKVqTsoR3wrU8ZNcd 5LEA== X-Gm-Message-State: APjAAAX/R2XiBPuFcvsNFptuTxpSYaHWKGJm7EaSt2OQVh2uTcHi05NM 0bvk9p6fNd1KLrwRrjx2DZdu4A== X-Google-Smtp-Source: APXvYqxcx1r+IcoGtXHd2hQV1AZzw6FglIgIvVP3Ij/NByDoGTZj5rYGpAki6fUvsL6Az9tGsFk0eA== X-Received: by 2002:a1c:a5c7:: with SMTP id o190mr4836846wme.183.1582054398819; Tue, 18 Feb 2020 11:33:18 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:18 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 04/20] usb: gadget: at91_udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:47 +0000 Message-Id: <1582054383-35760-5-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe Acked-by: Alexandre Belloni --- drivers/usb/gadget/udc/at91_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c index 1b2b548c59a0..eede5cedacb4 100644 --- a/drivers/usb/gadget/udc/at91_udc.c +++ b/drivers/usb/gadget/udc/at91_udc.c @@ -2021,7 +2021,7 @@ static struct platform_driver at91_udc_driver = { .suspend = at91udc_suspend, .resume = at91udc_resume, .driver = { - .name = (char *) driver_name, + .name = driver_name, .of_match_table = at91_udc_dt_ids, }, }; From patchwork Tue Feb 18 19:32:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389377 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 228E8138D for ; Tue, 18 Feb 2020 19:34:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 02F0B24676 for ; Tue, 18 Feb 2020 19:34:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="xPlX00Mb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726620AbgBRTdW (ORCPT ); Tue, 18 Feb 2020 14:33:22 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40937 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgBRTdV (ORCPT ); Tue, 18 Feb 2020 14:33:21 -0500 Received: by mail-wr1-f66.google.com with SMTP id t3so25385816wru.7 for ; Tue, 18 Feb 2020 11:33:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MHonpuv7CKuPglJHIaWmpMCNHqnlw8BincncIn85484=; b=xPlX00MbtZPFdDI8x/pR7q0l1TZpqo2MP/MlI6syrVxWnNMq3POocxJWNitt2FlfxK ca40BfKAOFXHzRriPeTtPNg+bNr5ei/h3F2xMcHQwCEDcOb5WPV5mCq8naeI6ImybtU/ bnVwuMQjNelohtlU4ihbZGDKOX6knBA76tIlFkcrBCXLkHOlGCLftfdvMEAZQ/Ba4aSD EqRICW1GkyQoFz0XWgtwU0MVv/use0zPoxumU8KbBonqUWBy7wfeVjZcjs+RqGiKuUVt p5gck6BIpA9G/WG4ZGueIPji09RD6jn5tBIZWSMjJsWk311ldnufMQtfArBWaKdpSykE pwQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MHonpuv7CKuPglJHIaWmpMCNHqnlw8BincncIn85484=; b=Zkf+zWCZtfNen/4Qj5AoQikllrg7fM+XMIV6UO+vF0QxnLPLu+rdTJorzFoCInkNPA OXr3Hy4/1Pz++hQmziaEUm48M7mrMdKQjuqNpFNMNH9j5ZulNJf/6Hb4826hGXczoKVp fd6GiFtyxPDWTSuXXOFNagE3mPdxyGQC9w81dfYWHd2m6SPUffTRqM9PJG6CZqr93Wc2 NhO8HvcneIlcQJSsFl17S+P4bSrhfWdO5Rhd+48d27Iz4Ps2m9z2VLDw7lj4SypRLcOH kDfdwWanUxRPHpSQ9YwIL/ugnkejr9w0yXMVMckN0vvs9D1FXN7YxEyRk5xGF+1v24BK l2Hw== X-Gm-Message-State: APjAAAVVqeixQCbUzub5+omOhJo0TC2DnC0A0ElNdyRAnGcpY1OCjAZo MqHwFkKxskcP71hIf6Z8Awi+mBJxySY= X-Google-Smtp-Source: APXvYqwDYnjVJED0t0uAAknTEyT+FlngUXNJYoICixbTq4qdRKzsb0cy22FB6lKxXU3H3aF+0ybUNw== X-Received: by 2002:adf:fa87:: with SMTP id h7mr32215756wrr.172.1582054399956; Tue, 18 Feb 2020 11:33:19 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:19 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 05/20] usb: gadget: dummy_hcd: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:48 +0000 Message-Id: <1582054383-35760-6-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/dummy_hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 4c9d1e49d5ed..6e3e3ebf715f 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -1134,7 +1134,7 @@ static struct platform_driver dummy_udc_driver = { .suspend = dummy_udc_suspend, .resume = dummy_udc_resume, .driver = { - .name = (char *) gadget_name, + .name = gadget_name, }, }; @@ -2720,7 +2720,7 @@ static struct platform_driver dummy_hcd_driver = { .suspend = dummy_hcd_suspend, .resume = dummy_hcd_resume, .driver = { - .name = (char *) driver_name, + .name = driver_name, }, }; From patchwork Tue Feb 18 19:32:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389379 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C246617F0 for ; Tue, 18 Feb 2020 19:34:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2F9224672 for ; Tue, 18 Feb 2020 19:34:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="uU2854W9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726612AbgBRTea (ORCPT ); Tue, 18 Feb 2020 14:34:30 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36846 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgBRTdW (ORCPT ); Tue, 18 Feb 2020 14:33:22 -0500 Received: by mail-wr1-f65.google.com with SMTP id z3so25458285wru.3 for ; Tue, 18 Feb 2020 11:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AOWCbHndeZPS5+byfbryCBkvxECGgsEdFqsZA/3IxRs=; b=uU2854W9t9Wy+R1PcnzelLtDSm00kguTfVv2dKnIl6fYk87418YBQyB44AvSD0Tv43 7OJUIUpcXGYeEe6TRdeliUT0QK7jxD5wCt9BdXKfdHXqHtoKSO1T4C1Bi3r0BiGiwfSs BiPe35HKcbG5BK0ytQY4yWO/u7N7uU7AvsF9bmUFFooaBGFBrXRgQcUylWVA+G+Lkdp6 fL3E05K9ryRVMePNm3y7zIaC/mtl99vU92cthki3SsP7I0GOcwUAV73zIT3pxQmuVZkM 91rP90GL8c20fRjpWCesgQjtUzZS1Z0EFkphxUuKw7mrrAjeiI/JrkjRQyHLPOX17RSS 2fEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AOWCbHndeZPS5+byfbryCBkvxECGgsEdFqsZA/3IxRs=; b=ZBn1YZQJzb8dhYiYCwZd4FhhDy7nKdUld0m2L/IcL8VTYYfWKtiggH1atyy9eI/qsH xz2p/zK0wxsAGi4T0ewM/6/9MERJjBAVIHSUM0F+CI56O+92BAyf0Lwmz0BfzwGUemI0 NeWd52efr6Mldy0Os8tFzrkM9gVZwM75gRr3yy2AcP99BtNmBHqB52VYQNxKcjcGddmF mibwPZ0BR/ncNTlTFM9ChLYh1IHXqW8WMXcy3lY3XMNMOAWWkVknSfD4ox6zUZ11mgE2 2FTiBEcu/AwtaqRoFe6LT7jUB/m8vs/3Vq71Xc4nkBP8fR4HnHZxmp1WPlfHKo+pEDj5 bElQ== X-Gm-Message-State: APjAAAW2KduIDYQaELj7a/PgNI96JvBtsIqGGgXl9kd9fLxIyjnrZqIb r21dr2OQWLEUJ6/AanL4W+YJsQ== X-Google-Smtp-Source: APXvYqxWwSnTlhW6CSi27BoAt02KsGM3sb4bgJm52rNZkiHzGKPso/pT/s28vLFiQQJ+HdZLVSIYhA== X-Received: by 2002:adf:d0c1:: with SMTP id z1mr32598309wrh.371.1582054400814; Tue, 18 Feb 2020 11:33:20 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:20 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 06/20] usb: gadget: fotg210-udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:49 +0000 Message-Id: <1582054383-35760-7-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast udc_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/fotg210-udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index 21f3e6c4e4d6..d6ca50f01985 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -1199,7 +1199,7 @@ static int fotg210_udc_probe(struct platform_device *pdev) static struct platform_driver fotg210_driver = { .driver = { - .name = (char *)udc_name, + .name = udc_name, }, .probe = fotg210_udc_probe, .remove = fotg210_udc_remove, From patchwork Tue Feb 18 19:32:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389375 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDCB9930 for ; Tue, 18 Feb 2020 19:34:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD35024655 for ; Tue, 18 Feb 2020 19:34:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="RRR7WIr1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727277AbgBRTeV (ORCPT ); Tue, 18 Feb 2020 14:34:21 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:33429 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726610AbgBRTdX (ORCPT ); Tue, 18 Feb 2020 14:33:23 -0500 Received: by mail-wm1-f65.google.com with SMTP id m10so2910018wmc.0 for ; Tue, 18 Feb 2020 11:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n2/6Go98pHaxpLCc5lRLRHeU4KxfdOQs2LuzJH/tK0k=; b=RRR7WIr1e0sQU9K3EdoR/DhnYIc4/rh3LiZbPMP3o7KsDxgcrnlOejN0fh/4Y8Rh3Q PlF1am3pvjHFriwsTGetrBUQ+vxK91j/cwtv861hpab+b7fFGhLBT/1KZMhBapKahvxp +cMVOJ9slgZWA9SfAfKhFxyCeQizK0oe1imzaUNU5ICbKQepRp+X3gthGa65xy6AG37M ymq1Q8iA1cfeopQSGsQ7Lq/TYulpxOdga90qXJW77ShQyoU3ip//MS9KhaqE7b4YUfaU qEBv7669Xyp3pbtXR46v9X4zfy/GYbkyjOTmFk4dvqifb81mNHbp5lBHfYnb+JVH61UU GZDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=n2/6Go98pHaxpLCc5lRLRHeU4KxfdOQs2LuzJH/tK0k=; b=Ebdj0dyFEyyuWw/BvlzwHO5kfk4NHSr9B2LfNMxGggmn+IxcTFEy5CQiYlhrJtNoLX 7aLN0nWXmZtmCs4Z1PrqRz1E8aCzJFC29VDWrdQcKDW0pmkEoy0Ww1iFHjNK6zNYSmqf nSALcnbKwLyxNuwh/eu8LRah+3s/XmlVj7buH5tRkJh54UUGaO9BrCo3EcHNtALBIXXW l+NMktiXlCfmMBN4+Xnjb2hvKxnybkKMkD8t9pBOnwZOgoCYsJorIjnf9dXHFweZuvQ/ J1IWS7Gfi4tnCec/pwnS/vMU1/HehmfQtKHVhGH0rRwxQlBQ1pdiLcoY8TshjkTc9thu IhTQ== X-Gm-Message-State: APjAAAU5RNKueI/ATiJQJGruIH3l4KSGVtNinYs5Q48L3nm+tysJCZPT CXPZhFxYeHtHAIEy2TrwiKcn2w== X-Google-Smtp-Source: APXvYqyC6GjfeEE6nKgfSsSWz1/SSC2ZJpbMalzrWcB1oLvQHLfxW6Z17TFDIAS/YBVFDc1UIIhZ2w== X-Received: by 2002:a1c:7c18:: with SMTP id x24mr4978411wmc.185.1582054401703; Tue, 18 Feb 2020 11:33:21 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:21 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 07/20] usb: gadget: fusb300_udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:50 +0000 Message-Id: <1582054383-35760-8-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast udc_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/fusb300_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c index 00e3f66836a9..9af8b415f303 100644 --- a/drivers/usb/gadget/udc/fusb300_udc.c +++ b/drivers/usb/gadget/udc/fusb300_udc.c @@ -1507,7 +1507,7 @@ static int fusb300_probe(struct platform_device *pdev) static struct platform_driver fusb300_driver = { .remove = fusb300_remove, .driver = { - .name = (char *) udc_name, + .name = udc_name, }, }; From patchwork Tue Feb 18 19:32:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389371 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5FB6930 for ; Tue, 18 Feb 2020 19:34:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9693724655 for ; Tue, 18 Feb 2020 19:34:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="FByhnh4a" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726659AbgBRTdY (ORCPT ); Tue, 18 Feb 2020 14:33:24 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36891 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgBRTdY (ORCPT ); Tue, 18 Feb 2020 14:33:24 -0500 Received: by mail-wm1-f66.google.com with SMTP id a6so4208718wme.2 for ; Tue, 18 Feb 2020 11:33:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pjF+muLIhia2iJlkAiVEwAXGwvsTo93e9rZBfV8mBcQ=; b=FByhnh4aHbUwNUbrLIvCa7S87+yL9GFB5EFtUZDmg6Yh7/YSremqljAk7DlVVNbB0j eDHgyZHU38hH1nj2jmooaixF0wMPPMgmkycHURgyd39qmHHKGjmoJAti7onWk2ytn9yC j5dpQvtW24HH3oxtLgnIYTgtbSMoAV1CEhfbC6L+1tPFy13Rq/ZYJIyyZwRAgBcEp/8m 7oEjGi9PRYVjY3hbz+Fc3JBC/GkA0STUH5NPL/BUbp71f3YJZrd5HuH3XHcDJzZJDmXg gqYFqmNij+sNWdWaHXPPLM2Ma6Md6xvqmQITG62MPIwEXmZd5KPSsNMOvV49b2b0unOF FNdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pjF+muLIhia2iJlkAiVEwAXGwvsTo93e9rZBfV8mBcQ=; b=V2JZpWQpHL2IIX7/UIgp60RuseJ3dm0rrXNoPMNH5OYSOG9Xy1Urr3+IwNRX8drrZI jj3JidTXCSkkhh5X45+k6hwx6qebPY6VOMw/vvLwmiRkigEXLEw5ylBCmPL8oAFv/ReK 7K8QFgc6FnTtXbZDFkGoBwbTwcuPGcTJgiRZ3DaHFWna70seaQySeTizDkehtWp02qrm 4rx9Sa98VTrLhlD9HKJbOdlbhm4Vsnrs3/YyauqeDLv9NOLhtg39+ldZxTIwMDkjzrde MBucAsOGBIfmNplV6tCoreMKLPyKPlYploOhQXvDAay9WEFGWhKXCBpR/baKzDg26Hpq 7T+w== X-Gm-Message-State: APjAAAVvybfJFt4VSz0vfyWf0tNnHewe415tY0I6oUX/VqazHoNtvl5J PFgj58F6QoEGLqA5+Ka160BwWA== X-Google-Smtp-Source: APXvYqxoVM6rVVdhsfUOYDPvd6s6raX8l1EuWNKZpuyCFsDx7HpiuPGc56k+1Q/N8uLfxpoiCj/6/Q== X-Received: by 2002:a7b:c778:: with SMTP id x24mr4959002wmk.59.1582054402666; Tue, 18 Feb 2020 11:33:22 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:22 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 08/20] usb: gadget: goku_udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:51 +0000 Message-Id: <1582054383-35760-9-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org pci_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/goku_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 4a46f661d0e4..91dcb1995c27 100644 --- a/drivers/usb/gadget/udc/goku_udc.c +++ b/drivers/usb/gadget/udc/goku_udc.c @@ -1844,7 +1844,7 @@ static const struct pci_device_id pci_ids[] = { { MODULE_DEVICE_TABLE (pci, pci_ids); static struct pci_driver goku_pci_driver = { - .name = (char *) driver_name, + .name = driver_name, .id_table = pci_ids, .probe = goku_probe, From patchwork Tue Feb 18 19:32:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389369 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3DF10138D for ; Tue, 18 Feb 2020 19:34:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F43524672 for ; Tue, 18 Feb 2020 19:34:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="uRA4WO9l" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbgBRTd0 (ORCPT ); Tue, 18 Feb 2020 14:33:26 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34470 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgBRTdZ (ORCPT ); Tue, 18 Feb 2020 14:33:25 -0500 Received: by mail-wr1-f68.google.com with SMTP id n10so23454389wrm.1 for ; Tue, 18 Feb 2020 11:33:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a7GEUna4G5RbXgq36EEYG2D0rjG6W8XH0Dtowe6As9s=; b=uRA4WO9lmxzJnN8WEkKi9RYhzj9YdW4cC5DYKICsVnNVacaQ9MyMZEa4pfRD5PaLh7 t4uQnDrN90AItIWNienqvMAEsi0QfgYojLqhX8Cslw43H772RfSWRJ2e2IUOeKoSUiiM OtNwNmQ1yt9Qi3fO3AzxzoO083OuTRvtSFYnV89VAeUEPm2yiBEL90t0H5mp8tvDunq9 czQIqOIzmzh6a/+kyiMFY5A35uqoNv37t0TJjaC68C90dxdGaUNw4yEfDRJKsMpvQZ2q L7qW/evqTpfiokn5ukUW+9GLzuBhFPFF4K42xCrxbVB04kMD1D3VguZdnT74SrPzX5Ie LULw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a7GEUna4G5RbXgq36EEYG2D0rjG6W8XH0Dtowe6As9s=; b=qvQgdSEZLtavJIZmznh17E7Zd0m6b7f5rfjU/lODVIhU2Gu5hxoDIuIhcPSC8SD52S KghFc6iDQYAMHfaxYStiAbcL2D/UoW0heNHCkUX4wWbo0/L1AZ4sMf75HWpMgQ9YcP1J ePKTGzLJDq3hI4CsGECFeuglPssOT4217/+owOmIs+2wBwK9NAfeaAcTiV2sl5F6P5j0 gT+63hgsApLdaQLiczp+C3hM9nCQY17ccOJxocvwlGbLXj8vCmKcv+lDi+4p53D5Ql4i lTJXcSgv3i2FMKcpuvwx/F/aPwCLf5/8xUDIwOvwtyoJN679IdcQJC0N+kEkzzzE0yPP AFCw== X-Gm-Message-State: APjAAAWNAL+a6WBkDChxOVUkaFrHTawXZGICnptXr08COC2MfNjneZIl 03dvMc9BzdUs+GjLjXGr5P5IDg== X-Google-Smtp-Source: APXvYqxjXR4su4Hv72/U7GmAiRCFdmARwCRra/TybDUrWP+GSOq0Tnw/N56bhpE0fdQ/pQE08M6Y+Q== X-Received: by 2002:adf:f986:: with SMTP id f6mr31872129wrr.182.1582054403557; Tue, 18 Feb 2020 11:33:23 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:23 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 09/20] usb: gadget: lpc32xx_udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:52 +0000 Message-Id: <1582054383-35760-10-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe Reviewed-by: Alexandre Belloni --- drivers/usb/gadget/udc/lpc32xx_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index d14b2bb3f67c..cb997b82c008 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c @@ -3267,7 +3267,7 @@ static struct platform_driver lpc32xx_udc_driver = { .suspend = lpc32xx_udc_suspend, .resume = lpc32xx_udc_resume, .driver = { - .name = (char *) driver_name, + .name = driver_name, .of_match_table = of_match_ptr(lpc32xx_udc_of_match), }, }; From patchwork Tue Feb 18 19:32:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389367 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA019930 for ; Tue, 18 Feb 2020 19:34:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA49524125 for ; Tue, 18 Feb 2020 19:34:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="xB0Z0aPP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726710AbgBRTd1 (ORCPT ); Tue, 18 Feb 2020 14:33:27 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34471 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726663AbgBRTd0 (ORCPT ); Tue, 18 Feb 2020 14:33:26 -0500 Received: by mail-wr1-f66.google.com with SMTP id n10so23454428wrm.1 for ; Tue, 18 Feb 2020 11:33:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VMhMCON8OuPufsG3ipSiCKDEgdVOYQVgnIzCUNgOnkY=; b=xB0Z0aPPPvTY5q59s/RiIVELERzjH2U8BFSMfOWfBxU2w29Zfc9KMc+U4jFuEPyX7a uJ/OxOvBnsGCSNGOJ9l5BqsfOc8Oj/HkX1E7JK95tLefzhDZYcFbWpgM+GTIYQaS0q+M 6YAbCjlcGgapYWOvCKTdsoJaM0ekXgBQCiNgCLo9oFbtNOY4Dsj1VuZ0AHGF27Cn833s 63gK3tlkEQbl61aBlFDS6LJAMCPYSQK+cU3iOdRmeuPsv5VXxNl9X/HL4nV1KMW4e2Kc wydsLep3EGtzxBHuZxoMEMPZ/DC7SefkXC4Mgh1lYfJgXyfXI2onhupUqgL/x2xFBL50 NATg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VMhMCON8OuPufsG3ipSiCKDEgdVOYQVgnIzCUNgOnkY=; b=hlBUKD3viRC8uuUrbM1YgBQPO3BRp/xqmWA13GqLVktIhAHE7uw47B9FZ8k1VWpK3S NBWYcqM49dAvzASeI0On1TW1UN1CvKXI2zlP2jCZa/RegXPcaoejb2X0+XXlheWnTmEW +Kw2lhsj7ly8O5D1/qvF9/iFo6oRiOx+O7+EIFUFYGO1uVG+6UTmBxYh8OWTheUtSedb Y6jpYA2FeqM9JX7X1xFAixSvtxn/3qY145SwfBxVSpM2TNh0C/hXugYHLuQdJnRlGcic 8Uj6zcKnm1NepcEVhgvVrgse2R7hLzxmUUOenyg38dEeU31ufASSsUe6ESzH+UrEPunt WowQ== X-Gm-Message-State: APjAAAXgH0Wfdaw3hSCa/gmEo/8RbjOhxX0R6+bUYnrU0fIMvbRzV+/w Serjjh3QAxmwHTd82SI1eN+wTA== X-Google-Smtp-Source: APXvYqzckUIyriHGnsYfrHwscI3IStYXXWUqfYiWyMM7Rh4jYCpfpR1iboxY9wA3gVwPxIiNgFDTCA== X-Received: by 2002:adf:dfc8:: with SMTP id q8mr30710027wrn.135.1582054404454; Tue, 18 Feb 2020 11:33:24 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:23 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 10/20] usb: gadget: m66592-udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:53 +0000 Message-Id: <1582054383-35760-11-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast udc_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/m66592-udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c index a8288df6aadf..75d16a8902e6 100644 --- a/drivers/usb/gadget/udc/m66592-udc.c +++ b/drivers/usb/gadget/udc/m66592-udc.c @@ -1691,7 +1691,7 @@ static int m66592_probe(struct platform_device *pdev) static struct platform_driver m66592_driver = { .remove = m66592_remove, .driver = { - .name = (char *) udc_name, + .name = udc_name, }, }; From patchwork Tue Feb 18 19:32:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389365 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C6123930 for ; Tue, 18 Feb 2020 19:34:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A682624655 for ; Tue, 18 Feb 2020 19:34:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="Ginbqi3B" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbgBRTd2 (ORCPT ); Tue, 18 Feb 2020 14:33:28 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41726 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbgBRTd1 (ORCPT ); Tue, 18 Feb 2020 14:33:27 -0500 Received: by mail-wr1-f68.google.com with SMTP id c9so25420986wrw.8 for ; Tue, 18 Feb 2020 11:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ByhSpSk0RbpBmQb/3fbgoL2btiyO1MoLUthBlNAP+jw=; b=Ginbqi3BPfw0S21lnWHbzwTt97BQiojH1B+yjE0E6p3LIu9F++u/cPgEBU2neON+7T ilap8jk8Bq2qhW4pjVsdxK2TuSzQajG2qsOd2l7g0bY4PLZ6a9K0EY7bP9PwCrqvqtLT XuRPTuZQy3vnvHs3ay6cCXlUaK+ngA26TxdcFeXsOi6jghvyynux2xFVs27m9ifmlDv7 FKw27wyhjBLhKzrL8rvQvGgMBaYGNP4KmX2jHjbBdCIv+XQLDinPPIJgcf0KzwHraTl/ /poQAnaUr6Trchy2eisDWZXXlMcP7v4+jPEFfr0XxZov/nS9UomHUTr9L18L3A0Ybite St1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ByhSpSk0RbpBmQb/3fbgoL2btiyO1MoLUthBlNAP+jw=; b=oCw9SSNTn5AgLjwgM6BqZ7GKe2DuVKZw214WVGShOslUYvCo6cRy+WIE9GjQ6J4DgQ Cnm515Oqj2fuzvhVLDrchGxP6AuVDVnSv+hzvZQOm4FH2HEac/sIuynwqB7O8eVvud9a FcRBO9YSbtEgwm77qg0bu3ujC2RB4fu88H4S0TwbOZxX/ILgBfdyWIGkgD5bdzkyfQPi bkADrTD7u72jdKrCOdCLeVxpRd2i5Wo6UTgeQB/86mvHKQX7D7l09cQCsIghRNnKMNip AqTJ1YHS26cSFrYT2xIPNzk/2naWhJt7wHBn/q8TN0jXWB8oyDfbkheGpmJpr831pp7F Ho7Q== X-Gm-Message-State: APjAAAXhzTeGf2B26/cV58pkjrfKeubIVmpzMtrti/NU6SSSOcT7hcCF IC4jUZc4WzEOfbHxsvfyWD/tgWjH9Qg= X-Google-Smtp-Source: APXvYqwM1AhZpMBzLvaJB+hOg8Ca8jvotSklINB1IsiGR01YYW45xXdNQg0YraL/2BoAWvsd55Wang== X-Received: by 2002:a5d:4e0a:: with SMTP id p10mr32456351wrt.229.1582054405339; Tue, 18 Feb 2020 11:33:25 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:24 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 11/20] usb: gadget: net2280: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:54 +0000 Message-Id: <1582054383-35760-12-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/net2280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c index 1fd1b9186e46..4a815aab8f5b 100644 --- a/drivers/usb/gadget/udc/net2280.c +++ b/drivers/usb/gadget/udc/net2280.c @@ -3857,7 +3857,7 @@ MODULE_DEVICE_TABLE(pci, pci_ids); /* pci driver glue; this is a "new style" PCI driver module */ static struct pci_driver net2280_pci_driver = { - .name = (char *) driver_name, + .name = driver_name, .id_table = pci_ids, .probe = net2280_probe, From patchwork Tue Feb 18 19:32:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389361 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CAA3A930 for ; Tue, 18 Feb 2020 19:34:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ABF3324655 for ; Tue, 18 Feb 2020 19:34:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="106kcsSZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbgBRTd2 (ORCPT ); Tue, 18 Feb 2020 14:33:28 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41727 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbgBRTd2 (ORCPT ); Tue, 18 Feb 2020 14:33:28 -0500 Received: by mail-wr1-f68.google.com with SMTP id c9so25421042wrw.8 for ; Tue, 18 Feb 2020 11:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K6WHmT1Q8HUElfvFbGW9Dh3Pw5PPNoHiq3K4083/U04=; b=106kcsSZ4LU/10R3o2p3osg/GDCO9WirwxTaO3LgTuMSCiG6apeUuthE3ZI9gItity u3rzE4mWwKv5n+cW9tmSB7Ljv+JXMY7bKTrWbRycZSmP5ElaRG6v8N9oPitXuBHcCySp +NtWaIFwwI2D2ajZEPiV1vAf4U9PlAdEVAVPs7xXnu1LVK7OhvEbrD8Hahoczg9oGCsH EebqJfPXqOrchabWBFKUzzw7WwpKStIUtPc63sCOdzDmYqOrv0HhZFxD6vaG5KMAsD4u UQwtvBDEDgMYHK7UQ1hV+wnAB8qJkk6PjAyK4MEvTJz5X5AXC+emiuSSYN+EsbVu6yWS hXLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=K6WHmT1Q8HUElfvFbGW9Dh3Pw5PPNoHiq3K4083/U04=; b=KzbOOYbwXY7zGsESlv5+zhUuFmLY5UPNh3WiptrCwyOh1kevN2NAamoBHpOpf6iof1 UFndiPlWKMHdUY355Q0xTTeziITfpTEAErRDHi94/GDUu7NV+tZ4AnZ3PUqmxAZ2vTB1 NiPkJXAiLqsDP4oitl61I+iv/RnfNhWRgGZcKSU70iqcPiWw8kZQA2tsfTRkYmeSmpVt nlQnGr7cKSFp1RkMQSQ4uh3rNTNkWw1XvwbZfP5AJgTP6EnHUR1PA9fnLTVx88qam1w4 GTJT+ZHzbvnpsQyj1JUeuipkHZo/p6ZfdTNrr0QaNfgwobbg/UktWUYHroZB1EqgW0dq iXeQ== X-Gm-Message-State: APjAAAVKoF3xDGu7pWejSEJYEO6P3quge9JWlXn8X3jRhp/oxuKbEA9f PDBQXZfPCklVByPmcTQ9HeVvbA== X-Google-Smtp-Source: APXvYqzvoP4MSFReUflySE73Nx02NzCW0jknJD3OEVLpu7rFICnkripQt1AiTb5uiiwG9a8GPfXtEA== X-Received: by 2002:a5d:55c1:: with SMTP id i1mr32971190wrw.347.1582054406291; Tue, 18 Feb 2020 11:33:26 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:25 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 12/20] usb: gadget: omap_udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:55 +0000 Message-Id: <1582054383-35760-13-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/gadget/udc/omap_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c index bd12417996db..bf87c6c0d7f6 100644 --- a/drivers/usb/gadget/udc/omap_udc.c +++ b/drivers/usb/gadget/udc/omap_udc.c @@ -3001,7 +3001,7 @@ static struct platform_driver udc_driver = { .suspend = omap_udc_suspend, .resume = omap_udc_resume, .driver = { - .name = (char *) driver_name, + .name = driver_name, }, }; From patchwork Tue Feb 18 19:32:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389359 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3B2BC930 for ; Tue, 18 Feb 2020 19:34:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B29A24655 for ; Tue, 18 Feb 2020 19:34:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="x0+U/skH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727206AbgBRTeF (ORCPT ); Tue, 18 Feb 2020 14:34:05 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36899 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbgBRTd3 (ORCPT ); Tue, 18 Feb 2020 14:33:29 -0500 Received: by mail-wm1-f68.google.com with SMTP id a6so4208915wme.2 for ; Tue, 18 Feb 2020 11:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Fhwn2ZW4+Oeu69BMvqd1Amzh30rqArEOAoeVg6PmOWg=; b=x0+U/skHhXnfbCeAgDwjQ8qJmDqyWtwDQlK7yFyQgERkVEMatsfBRZLy22osPctvse 3q/bu1g2a1LEB3zjxbu3vETUdfOTugPNK76akGMUrub/BXHMFAG4ytSUwarKnCwwvjpO JNM05lNSHeykBpxAZFmqERzbfjrpwHZUTPKfErl5MFcDqYgeXfT6Hy1uikV6IJG94m1v T8xnTTvkJoN5gpQom6SHVyZUlLtuo21m58D+APxd1ixlpSXrkhOiD1q5u9XfEJr0ySDX aEhqNTVRPMUET3PRSWjME5kMLFoH2qjYOGYOSIk2kfBHDdi+UxjnyTNb6Ch5+SEw8wnD XXWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Fhwn2ZW4+Oeu69BMvqd1Amzh30rqArEOAoeVg6PmOWg=; b=aj/C1mortFh2dkIZa9kX4xjZV4J3mvqv4sBcAiAr5jR38IgkJlioRE/nMZ2iYLDM0x 3esch/mzoRGqXGIHaftJ2knUxmegmjv1Vhsq6nF7MyIc2t+QzHXkX4x/wWhGG3+jxKB0 hwZXHyPDRIO8mcVHo4cjCOgReoLQnr8goiovD9Xsw9c67LI6YV/AN57s5WqA6Jet7raQ rt6sxD5R/4ffDNmXRlYT0g/rn188gpPcKPElFrH9pd8XFsWdt10a6V7EzyLw83Z2wXPv 2xMqy4gYMpq2kGvZdU3JGHQopgzCm3Eg9rQrAMI/YniesSzlbqRsGdwBsN+cx6RkqA3t R7BQ== X-Gm-Message-State: APjAAAVJZeW1muGc2ii9CMCpq+4Oymqvq4y9FdsCBHt0KM99vYM9Yljc ub5mPtf+DmaX00wlNqbfEAGeMg== X-Google-Smtp-Source: APXvYqwU6LtJ+4yda1ST5mI7xKccXgYcyuYDViGv3r6yI47nRAJx8KQ7bO49LiFdYcP4+WBJfA7+AQ== X-Received: by 2002:a1c:1b93:: with SMTP id b141mr4945747wmb.114.1582054407086; Tue, 18 Feb 2020 11:33:27 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:26 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 13/20] usb: gadget: r8a66597-udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:56 +0000 Message-Id: <1582054383-35760-14-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast udc_name (which is already const char). Signed-off-by: Corentin Labbe Reviewed-by: Yoshihiro Shimoda --- drivers/usb/gadget/udc/r8a66597-udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index 582a16165ea9..537094b485bf 100644 --- a/drivers/usb/gadget/udc/r8a66597-udc.c +++ b/drivers/usb/gadget/udc/r8a66597-udc.c @@ -1968,7 +1968,7 @@ static int r8a66597_probe(struct platform_device *pdev) static struct platform_driver r8a66597_driver = { .remove = r8a66597_remove, .driver = { - .name = (char *) udc_name, + .name = udc_name, }, }; From patchwork Tue Feb 18 19:32:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389357 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F6C1930 for ; Tue, 18 Feb 2020 19:34:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7091924125 for ; Tue, 18 Feb 2020 19:34:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="QWteRJ8A" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726980AbgBRTdy (ORCPT ); Tue, 18 Feb 2020 14:33:54 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37710 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726742AbgBRTd3 (ORCPT ); Tue, 18 Feb 2020 14:33:29 -0500 Received: by mail-wr1-f66.google.com with SMTP id w15so25401486wru.4 for ; Tue, 18 Feb 2020 11:33:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CICLGgehzIV39n0G5fNiUeOx0sShsCKvoh9C5iQTUS4=; b=QWteRJ8APs9AACJxJ9Isru24pG8gclsXlxMe6kSQOClBCpMl9ynpbto9oH6gayxX6Y LN8mY8/VqcBoPo+fXhK6Aqa5x7fmd5OU4M/ORWMM3qRj3G2vDIbIfrG5EdtHR1W5QQDN /1whNGpeWcaOTd0MTWYvaHXbvyeh/Eo3LW6tCgWil9L1mgTI/HYVtZEpoXzTm7o5w+GP QSrGXuQncB7Ov6s8JyeFsw0POrCwUA3tKyacioNHh9aHZlDSngcTLzejZr0fwEZKoPOT eCDkzPLTMnWddU0Utce26hh7WZ9jSv2IETBN8OcT8yCENZKT05/QWXLBaGVrge8suKLi xDfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CICLGgehzIV39n0G5fNiUeOx0sShsCKvoh9C5iQTUS4=; b=iNgOxvC+nl523fLsmQsTEcgQRGjckVA0BpGBne7q+KXaxO/WUWqkoAQu7O7rW0bHIf 4osgy0E5qJ2GLTNfU1t1IvBnK9hn+MPDYpQbzHvT86eVpa9XCftP2WbJs0d2Bj20QmwY 9sdxiixd5oRbEpZzi8+lW7H90PGmJqHpY6HXK8gcCJSmpvbp2Z/N2CNClrsx8jKDN5NF tgbEJGcrIs03TOfFi15gRB1FFuVjcQDbME2u2x7lRmrjuaiMe98rD+XsZNw7PK6ZndIM 27j0Xomwe9QiAFfrrcbcvJNKcXHbb2gC075dAEAykuGKJ4i8RB4gzS4dyxwfMrUvbynD QnhQ== X-Gm-Message-State: APjAAAWlKR+mf1nG+E6JPk2V2ZV/VsYI+0oVsGt7iDM90XLdawqdb2Df PJALqcoHagrHxbirigbP2tp61w== X-Google-Smtp-Source: APXvYqxEf0O101KsjGID0PiOn4lRSqAvS4WrZb4wtaWI12XLgPEfj4VBO+GEZ/T462WCcJF+1Y7oiA== X-Received: by 2002:adf:fa87:: with SMTP id h7mr32216339wrr.172.1582054408009; Tue, 18 Feb 2020 11:33:28 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:27 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 14/20] usb: gadget: renesas_usb3: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:57 +0000 Message-Id: <1582054383-35760-15-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast udc_name (which is already const char). Signed-off-by: Corentin Labbe Reviewed-by: Yoshihiro Shimoda --- drivers/usb/gadget/udc/renesas_usb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c index c5c3c14df67a..42ae99ad9b25 100644 --- a/drivers/usb/gadget/udc/renesas_usb3.c +++ b/drivers/usb/gadget/udc/renesas_usb3.c @@ -2906,7 +2906,7 @@ static struct platform_driver renesas_usb3_driver = { .probe = renesas_usb3_probe, .remove = renesas_usb3_remove, .driver = { - .name = (char *)udc_name, + .name = udc_name, .pm = &renesas_usb3_pm_ops, .of_match_table = of_match_ptr(usb3_of_match), }, From patchwork Tue Feb 18 19:32:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389355 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 529B0930 for ; Tue, 18 Feb 2020 19:33:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 33C7A24654 for ; Tue, 18 Feb 2020 19:33:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="WP2Nb5X/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726774AbgBRTdc (ORCPT ); Tue, 18 Feb 2020 14:33:32 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52608 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbgBRTda (ORCPT ); Tue, 18 Feb 2020 14:33:30 -0500 Received: by mail-wm1-f67.google.com with SMTP id p9so3990436wmc.2 for ; Tue, 18 Feb 2020 11:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VageqtOZsyobFYSRSb56IHHuxmKRjwjLuogyKVcC/80=; b=WP2Nb5X/iHvjuhfX0cwqp5/S+DDSlybv2/MDC9JZm2aK9z5yGFSkpHx57q5uiUdYiJ KwewSKKAaRkL3LT8E2oFQWrq461FqCi3owPfKK+YB5XVVVpBOM09lZ3LoNXefY57mLp2 OmYd2uHXYgO8xZdP0b+0EwWp0DzuAqEJF2SbZX2CTkHPvD9o49xkHtiYdN8FMHhWEprT m6B/m3ZZTrFOmfRNlCoDpaoo4NdLBfHvZpyC8eAeRJQtxFnM2QMdi9I6CtlTWn55BZAl +VPqu/lch8gT7TQLG39ouZcfjHI/ttrEwAaE5WhUyf5wqsO9G0Rl8X8DmGxyvzQffBgR US0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VageqtOZsyobFYSRSb56IHHuxmKRjwjLuogyKVcC/80=; b=BxGWlNX6uUsBZADtE/WMEsUhahkrY21JFl4nPcnf6uucFClDO1HnLzgO1RxeKQa4un GCx6xTbzLO8rzP/KrTpliYyWGGc938zhOjPd1Rdu8QRk5bvv+CnaGQzEpOR1eVKU0uH0 gWn1/LKG/cwtbD2E7sZWA1HGfZA0tdk48ML9JpvOrmrqBy2eggRorEML/ZPMVfBpJ1tG A3ZQ5TRu9adBwjGOpzi4uTaao6dEoyDjSISzXwFMGaJ3LnFGgQ/yEfTS/4KaU7yYfJtn t6pXMp10eLoJyRRly1P9REh2rwIyLwPFBd5F0IvefJHI9HBgqfDJA/l3F1JZfU81LHd+ Kc4A== X-Gm-Message-State: APjAAAUy4KeiyZdXV08aMkj7F42aBaEDulLO6ZLQCL6q+hEdIGXydBSC Nrhfg5JClwrGqDe00EL+YsQWtA== X-Google-Smtp-Source: APXvYqwQ/UXHl72OmZruSflpc5eioVTKPp3ANMMmirpPpsbjMqwaBn7VaVg9yPcWpx5E4upI/oajNw== X-Received: by 2002:a05:600c:24d2:: with SMTP id 18mr4738998wmu.149.1582054408923; Tue, 18 Feb 2020 11:33:28 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:28 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 15/20] usb: host: ehci-pci: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:58 +0000 Message-Id: <1582054383-35760-16-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org pci_driver name is const char pointer, so it not useful to cast hcd_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/host/ehci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index b0882c13a1d1..1a48ab1bd3b2 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -384,7 +384,7 @@ MODULE_DEVICE_TABLE(pci, pci_ids); /* pci driver glue; this is a "new style" PCI driver module */ static struct pci_driver ehci_pci_driver = { - .name = (char *) hcd_name, + .name = hcd_name, .id_table = pci_ids, .probe = ehci_pci_probe, From patchwork Tue Feb 18 19:32:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389349 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B4DAC138D for ; Tue, 18 Feb 2020 19:33:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94AD12464E for ; Tue, 18 Feb 2020 19:33:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="b2RmJ6Es" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726858AbgBRTdm (ORCPT ); Tue, 18 Feb 2020 14:33:42 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40957 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbgBRTdd (ORCPT ); Tue, 18 Feb 2020 14:33:33 -0500 Received: by mail-wr1-f65.google.com with SMTP id t3so25386355wru.7 for ; Tue, 18 Feb 2020 11:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qzVfbuv0UjeSRxXKHRypGoNUSRzZLS4IAN1hM5sqaJM=; b=b2RmJ6EscimjzdPIeQMGlNOE4c/kSwwDXzjFpT9RxdJzz318ILKJhMkg6QrMFR0nVT tFCoRk2E5fZon4mA7P4wb5e6IogwT36Djrcsn7zGVF3e2VjWzkhzrBx2Ee7UfHciiOnD HU9ghibHnMFM7bQo7oSdFRSUae0XsP3gEvC04j02rspxuH3mr2uI9VDDeL4G25uvFpPD Nb8QfZtvIwKT4equH3p4U0eT9y3BSfS5l6+zYrfusAIwVf0Sa7dst+ZO3GUtfrKsACc1 QzhYsAN+bh9z/XCICTACYF5XYq+HAPExPvgf9oNd3ZjmVqzVG7/u3zo/eTgX/tLMI5ig wSRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qzVfbuv0UjeSRxXKHRypGoNUSRzZLS4IAN1hM5sqaJM=; b=VgwUKF8guqGpkSQD1d0/iT5u1ye2dFKfiWIVp0KueWxHkEsX/XyUqzLe02BOheDjjH uFaT2qU+POZD0bIlokmaFtqMloS0KAaM9fskqbFj1wCxoPP8ITaKECD5/EhHUq+hFA4u BEIMWzkirMcvUIfkIDl16ZtIYV/uu1zeZFLPGBrtFa9hu5/gywRkoMf8bifdfQ9GodSi gGqHjIrYGXSsSl5XAMoB3xGvULlmE55cFq06DBQRyBxoN57yaWrTFYW3tP/77p2vKKmZ FZwZXBPv8z8XsKEJIoUp2HNRmKCFt7UL6z/Bdma0O/5ENMsAt2h/O3TqaHUrFjxNpJzG CbSQ== X-Gm-Message-State: APjAAAVggF7/tPsZv7RaRDtVxxZQDFwav0B0kQhkyLe/Y9wdDX5h5dBe b/CSs0Xvm3qlJaBqlymNlVb27q58lto= X-Google-Smtp-Source: APXvYqxVlIzlOPJ7GmA76MZihm63jDa0r+jAX7yBzPP+MPh9N+W+3wG8JHfgGtdpK1wwbvTmNBLnKw== X-Received: by 2002:a5d:6646:: with SMTP id f6mr32681840wrw.276.1582054409814; Tue, 18 Feb 2020 11:33:29 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:29 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 16/20] usb: host: ohci-pci: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:59 +0000 Message-Id: <1582054383-35760-17-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org pci_driver name is const char pointer, so it not useful to cast hcd_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/host/ohci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index f4e13a3fddee..22117a6aeb4a 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c @@ -288,7 +288,7 @@ MODULE_DEVICE_TABLE (pci, pci_ids); /* pci driver glue; this is a "new style" PCI driver module */ static struct pci_driver ohci_pci_driver = { - .name = (char *) hcd_name, + .name = hcd_name, .id_table = pci_ids, .probe = usb_hcd_pci_probe, From patchwork Tue Feb 18 19:33:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389353 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94162930 for ; Tue, 18 Feb 2020 19:33:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 74AF624654 for ; Tue, 18 Feb 2020 19:33:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="WXbdgkRz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726945AbgBRTdt (ORCPT ); Tue, 18 Feb 2020 14:33:49 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35845 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbgBRTdc (ORCPT ); Tue, 18 Feb 2020 14:33:32 -0500 Received: by mail-wr1-f68.google.com with SMTP id z3so25458767wru.3 for ; Tue, 18 Feb 2020 11:33:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kXwAGZwN4heqrm+yisZqSC1971kXzW7z7pJvBg5a/VA=; b=WXbdgkRzz5bJUy/h9WLUJEoNOZR/kJIuqcw8w2abFn6go/1ZB6+eLoDZIhb7ewUiWM 437/g3AnYe/8BatYTAt1Npl6AlTSuHbHeV5fIky9gyMf45x3EKU/eO3ujlo3rIFRBjt3 8RiafI6Khpn7vQWe39P71bMeZj0ZndEtYNEWgQnCswKehQpa7cBrhiA/sMm/VyLJAOh5 aUzf36wvBk2vWJ6SQO6vQSqFu5d1P2k2GhCLLKhvQnbn7JPwOm5cyWWAU7PZca4plUzy 7hnc8gmWXooxeFHIo5vduWgn2tHBbfg39iCWhn/F6BH1Ky9P4VFTVcnoAqZkT4v1SaEj hsTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kXwAGZwN4heqrm+yisZqSC1971kXzW7z7pJvBg5a/VA=; b=uKVfw9D0pq5c16MgnMROixAI25VuqqABGtXgRPhMCWC0Ag6xsiHUN4tH2+SrBcdngJ /nuzLglav9Z49kxgP4a9bXT5Tu/hnInQhVhA7iiK4e4dmGNgvJYmVTR+ajOYVdU3iC/j v7fqIVPDZ6BdefxuKoFNdGoP060OtYtaF8VQSCYYXG6srZhuTBdKgQV0mH/Vye5a2VW2 oI2Bsbfkz4uNlfZXt5vdXJAG4Mr20ZUZWdlo1hXzSjbjEm1i3PUppqPtZ5Xvwlu5sVSE QZQZD6/u6tpbwKYet9wwSbHlsMCBuJFa07FmJ6xPhzLQgjGLR08hEWE43ZWvyDhdTLh8 8sPg== X-Gm-Message-State: APjAAAVe+C0l1rmolaBlbC2QL59lgbViRrgY96eJ8z0DGRvd9xOisyF/ kkntv5YTcHj1WrbRRD70lQqgvw== X-Google-Smtp-Source: APXvYqz9QEapK+rHVfxz1jZEt08EcWoid6BWixbA5raOfT1UtuZhp2XypMaSFN4hipm9DH7zI+zXkA== X-Received: by 2002:a5d:4d04:: with SMTP id z4mr33060983wrt.157.1582054410617; Tue, 18 Feb 2020 11:33:30 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:30 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 17/20] usb: host: sl811-hcd: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:33:00 +0000 Message-Id: <1582054383-35760-18-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast hcd_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/host/sl811-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 72a34a1eb618..adaf4063690a 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c @@ -1792,7 +1792,7 @@ struct platform_driver sl811h_driver = { .suspend = sl811h_suspend, .resume = sl811h_resume, .driver = { - .name = (char *) hcd_name, + .name = hcd_name, }, }; EXPORT_SYMBOL(sl811h_driver); From patchwork Tue Feb 18 19:33:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389347 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 56C6D930 for ; Tue, 18 Feb 2020 19:33:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36E9D24673 for ; Tue, 18 Feb 2020 19:33:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="xQkcyhd9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbgBRTdm (ORCPT ); Tue, 18 Feb 2020 14:33:42 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39755 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbgBRTdd (ORCPT ); Tue, 18 Feb 2020 14:33:33 -0500 Received: by mail-wm1-f67.google.com with SMTP id c84so4203224wme.4 for ; Tue, 18 Feb 2020 11:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ayr0vaOngDA+VkwhWRpdM5V1skhfB+el5GXKIwRxryc=; b=xQkcyhd9mpgYZo1ph9KEAbwqPZXD3q7Xx5fqMyOGprcnJ5fdXq73iZaS/fQ+qrso1T 93FKEqFyelBvQVLjeti8uHKmxCdP6zeXqoOY2zzLQwEp70BQpaxuSVk2MX2WQX0X1RAL LNGQp9YBsRwrdCdhh9ydHE2VSaL1o55fVz0ewVwRo77qpyBXCDcmiWtTL0qt2HWJxkAS P/WJq0lsxEAdVunCc3N3MuNJuc1li4p4oR7/7MTzD4VmeL/gPVf+4LTEH6AYGqnv9bDD CDk+mzo5puPYxdtlOs+lXn0zoA/zKsvce2heh37g6R46RZFknCfkbRmrFAR1tVfc3L9l ze6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ayr0vaOngDA+VkwhWRpdM5V1skhfB+el5GXKIwRxryc=; b=Q4z82YPcg3joDN+VN2F4nMv0F/khSLm/wzaQz/Ode1621KJm0vJWANwQlBRnPDL5S3 Ffs0Q9QRvAZ5pjiqJ9UlibdPBAwMcS81eU5jJ+kqmavYcREx/scTb3l48pqwq69QtQVv 2uVDng/YT0r6wp7Z1nbYXpYcRiRIjijQZFCgncf9scF9m3MwhNKhxIfN1gTQRELinSvG Idxno0H/cKvVO5XwC8dS3jWc9YnWhAw/s72mYjNolk8Rle5cu4/PZC+hvDZ9l+XW+HsU Bwm4xwSkhlbVetnTntneQIhtvP7Mso0rI3VK+ZFD/tOSO14GixnPEP5NQAz3wEUgiRIQ YrPA== X-Gm-Message-State: APjAAAXZJo7VyMjXV7gW+r2h+HzyZjkKrwTRUs03beZgxxsRFFMU03Dc qeqQRQYnJzVt5isKoH7VozUK/Q== X-Google-Smtp-Source: APXvYqzDsjJ38h0gWD0g2s11Gr1Lmz6VBAIYHUJDGPLQPQMDv1f+ZTd+/40BghBPL7gZYdi1jG1GBg== X-Received: by 2002:a1c:1d13:: with SMTP id d19mr4920253wmd.163.1582054411665; Tue, 18 Feb 2020 11:33:31 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:31 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 18/20] usb: host: uhci-pci: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:33:01 +0000 Message-Id: <1582054383-35760-19-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org pci_driver name is const char pointer, so it not useful to cast hcd_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/host/uhci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/uhci-pci.c b/drivers/usb/host/uhci-pci.c index 0fa3d72bae26..957c87efc746 100644 --- a/drivers/usb/host/uhci-pci.c +++ b/drivers/usb/host/uhci-pci.c @@ -294,7 +294,7 @@ static const struct pci_device_id uhci_pci_ids[] = { { MODULE_DEVICE_TABLE(pci, uhci_pci_ids); static struct pci_driver uhci_pci_driver = { - .name = (char *)hcd_name, + .name = hcd_name, .id_table = uhci_pci_ids, .probe = usb_hcd_pci_probe, From patchwork Tue Feb 18 19:33:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389345 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0D5BF930 for ; Tue, 18 Feb 2020 19:33:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E146024125 for ; Tue, 18 Feb 2020 19:33:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="rXidaeWU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726840AbgBRTdh (ORCPT ); Tue, 18 Feb 2020 14:33:37 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35618 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbgBRTde (ORCPT ); Tue, 18 Feb 2020 14:33:34 -0500 Received: by mail-wm1-f65.google.com with SMTP id b17so4241283wmb.0 for ; Tue, 18 Feb 2020 11:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=N/BxOSBMeZaNye1MoygZyS5wTUoMQ90aTMHecPnsJPU=; b=rXidaeWUp55RRA4kDzm4Zjydnfv3HOiUvFDIADeJPNx920JX7ff7VJvMbBJ8TLcZAS P70P6YhgdR182/a/jxnxOJ7b+PN7+Ca34GK1v080CSCqVvNFeD0AUXcReChn+VRY/7gt Kvp3BbyB3mBpywJLrhwHcajvmvC2J1okk8E6i4NpjP/e2gK/kjrobHkPlnDyVf/w+Ndv +QfqJVGt8S8dA1nMPd4jgBjxCudtplIKiWxXtoYvZU5MFJ0KNm6A23Wmc83NxvTCvKKx 1KB1Elinhg9txI2vUhlprBn65djxajzW63KKnnOFNUR0q6QDayPTKEGLl4MOzjhCqmfb 8gMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=N/BxOSBMeZaNye1MoygZyS5wTUoMQ90aTMHecPnsJPU=; b=sO5rm3ICT3twLTZ50NZ4wbJOVvSrbPYbanpfscfibYr1ZTiWTQE81zxstMGkg7ALgr pf2iK/1gtdc1hZa64A0ycMSmwTcVQPYW9Vi+gxgSjazpX73rySGqlMUG35THaFmUkHgz 1bjwIosDTJnP1Oio7k7UZw1v7C6GzFidJPVw9WTdvCzPXcuX7I8dGvet/hVP2NXjfj6Q Puw/8NI5wZiCe4u4RQdgENGCQ5UTV3PeQwXhjrVBWYGp0wnmpnZ9QSeJNa+08CvwPZIW rMH7taCqPRuYsas/8HfukGYmEISVWd3LuLYSUY8haz1b0I4IIh5ZExiXhYLl2/8QqebG Xaiw== X-Gm-Message-State: APjAAAUffrgHXwdFk+8JT/XvAF6zPoEnL/pu9kD3CUYIQibbdVqzXQx8 9ReV/vduM4ZDfrT31egJpc2hpw== X-Google-Smtp-Source: APXvYqx2OzakvxU5+FL/ru47MRsIqww5QrDu9aHWIw0Oi3Ym29k9T249gOsfNdREzGBgqi5TKxRGww== X-Received: by 2002:a1c:541b:: with SMTP id i27mr5046830wmb.137.1582054412748; Tue, 18 Feb 2020 11:33:32 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:32 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 19/20] usb: host: xhci-pci: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:33:02 +0000 Message-Id: <1582054383-35760-20-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org pci_driver name is const char pointer, so it not useful to cast hcd_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 5e9b537df631..0715a2e75413 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -549,7 +549,7 @@ MODULE_DEVICE_TABLE(pci, pci_ids); /* pci driver glue; this is a "new style" PCI driver module */ static struct pci_driver xhci_pci_driver = { - .name = (char *) hcd_name, + .name = hcd_name, .id_table = pci_ids, .probe = xhci_pci_probe, From patchwork Tue Feb 18 19:33:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 11389343 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DC97930 for ; Tue, 18 Feb 2020 19:33:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5ECF12464E for ; Tue, 18 Feb 2020 19:33:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="vHu2+iek" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbgBRTdg (ORCPT ); Tue, 18 Feb 2020 14:33:36 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39175 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbgBRTdf (ORCPT ); Tue, 18 Feb 2020 14:33:35 -0500 Received: by mail-wr1-f68.google.com with SMTP id y11so25380643wrt.6 for ; Tue, 18 Feb 2020 11:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9BZxWx02OP4buIGB38mrXrqxMYCE34rX+OIKJheO44A=; b=vHu2+iekn6Oz45OTWnDlijL1xIyW4xkjqGKkztYOlh+VqZjEXxOUZogmPjm0uhL3/V gJav+pFLI7bnwITiXHYBTJOQCt1H18pQPE3Ji7+43gVecfGmcg27f+q5JhGAiwl9bXgb Qxll7KGR+q+tUJ9rBM2IMx6DMbSMEDNR4z+B4NQh9q+qvRk1d3gwZ0gN43pQkfCocdWP kSqpMOKEQC/fKZQ3XDc7jWmKUngekWsp8nTHflds91EXP+wpw1qdJg9DedOwHzg8ttPs 6skwhW9aMZq16dU+dI+RSXH0UUh+6C3E1q1QvVPxYFSptHKzp4O6B0vVsRRgsjuOdTXG 2hDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9BZxWx02OP4buIGB38mrXrqxMYCE34rX+OIKJheO44A=; b=Tym9lmOyJa4wszoNSGNQLMlH4ke9wfk3lgERxOBMnbYgg0e0BrcrwE7OvXcj90DEro 2Z4+r43x/mAfYAO9KRxTWVPK+x/+xXiMq+LH7lhCxeEnnFLXr7x0srYafLg7g88A4vFG c9twRNWivr15OLiAxJdln4kHIfojhf5JRfa6bk3ck8Kbc069WCBJOVVONCO1RWb61x5A vpADb168yBnk0xwkF15xDmpL4wU7LIxHKXKDegqe6201mdZ5MXftks3kOOjCJiJrqnQF CpvcoITgm5GmseOdUep2Qy6snk5FKBBM2Ly6Ri6A+c2zm85gWrkqaaFXqXpStRbJmihH DMfA== X-Gm-Message-State: APjAAAVEQzZ4sYJ5JAN03TXEO3Jva1VrUJRuPEg5UKDZjL+kCvmU7pDT kFVdrFq6VkayV/855fEuvLqTvw== X-Google-Smtp-Source: APXvYqxAXsDdhHT9Ljp22hJpRE2F0hVTr7iFO7n0ITXn4kLzmd5GWP72gHNUHkKcm9jzsYtEYezbWw== X-Received: by 2002:adf:fe43:: with SMTP id m3mr32460635wrs.213.1582054413698; Tue, 18 Feb 2020 11:33:33 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id k16sm7649266wru.0.2020.02.18.11.33.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Feb 2020 11:33:33 -0800 (PST) From: Corentin Labbe To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe Subject: [PATCH 20/20] usb: musb: core: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:33:03 +0000 Message-Id: <1582054383-35760-21-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> References: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org device_driver name is const char pointer, so it not useful to cast xx_driver_name (which is already const char). Signed-off-by: Corentin Labbe --- drivers/usb/musb/musb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index f616fb489542..d590110539ab 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2945,7 +2945,7 @@ static const struct dev_pm_ops musb_dev_pm_ops = { static struct platform_driver musb_driver = { .driver = { - .name = (char *)musb_driver_name, + .name = musb_driver_name, .bus = &platform_bus_type, .pm = MUSB_DEV_PM_OPS, .dev_groups = musb_groups,