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), },