From patchwork Wed Jan 18 12:19:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 91739 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp986799qgi; Wed, 18 Jan 2017 04:20:56 -0800 (PST) X-Received: by 10.99.24.92 with SMTP id 28mr3702187pgy.100.1484742056048; Wed, 18 Jan 2017 04:20:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si94363pld.109.2017.01.18.04.20.55; Wed, 18 Jan 2017 04:20:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752723AbdARMUx (ORCPT + 25 others); Wed, 18 Jan 2017 07:20:53 -0500 Received: from mail-pg0-f51.google.com ([74.125.83.51]:36501 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664AbdARMUn (ORCPT ); Wed, 18 Jan 2017 07:20:43 -0500 Received: by mail-pg0-f51.google.com with SMTP id t6so4394726pgt.3 for ; Wed, 18 Jan 2017 04:20:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=XMH5AJsCkN4/JZHmGYs216qWy31bklJ9pbAeLM29zSk=; b=jh0uSR0CsE0EcPnd/sZKEIY8Kc5ZBhxeJO1aeacX92U0nzC5IcNSGXGtafp/hkbq2P iTZuCnEcSDZ6FPxy/gTIJQ9T1L7G3d+6TB9T4bmQCJD5HpyE2mA9hezghDLwmvUq59FT OIYDnOm/loerXbFB/GNWZXkvaWzKTWrOv0IGk= 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:in-reply-to:references; bh=XMH5AJsCkN4/JZHmGYs216qWy31bklJ9pbAeLM29zSk=; b=R/juHhinaAq0XYeVxDA8w/ALv0Oj9JuQ1yVwd3wljhycKelqBPJy/2E/MADe1yOcTZ DDpiM4CsOgIgzhu0MoeMG8r+SjS3yUzP/b8M6Pv2ZrC8rF+1Q5wfecx8TueFCOiP2gQ0 IT1IcpSArfm9fNrQy1AzG0yfhhoNSLBxsHJeuyTS9ybLwYENQNHLPGVTJD/cBYDuaz4f RpafLFttc13bf/npYnE3H2NvbPaYVJTeRu0/KshWy+3s14YY8tjyMGILJ2MIAaCgMGDB OtjlL63I4xH741W75oO2IKY8NuTIDanUVfzKxdzNDaJTFcsuAPIw3HxaKyQthYgllcex Z1SA== X-Gm-Message-State: AIkVDXLmD7Cezey3O/XE+IcdBX9OLuXxBbG8UuIyr+Teb9lou4izfmnqm6eEexwbPrhOwa+k X-Received: by 10.98.85.198 with SMTP id j189mr3429325pfb.182.1484742042811; Wed, 18 Jan 2017 04:20:42 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id o12sm382837pfg.15.2017.01.18.04.20.40 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 04:20:42 -0800 (PST) From: Baolin Wang To: balbi@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [RFC PATCH 3/3] usb: phy: fsl: Remove the set_power callback Date: Wed, 18 Jan 2017 20:19:49 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the set_power callback did not do anything for power setting, then remove it. Signed-off-by: Baolin Wang --- drivers/usb/phy/phy-fsl-usb.c | 12 ------------ 1 file changed, 12 deletions(-) -- 1.7.9.5 diff --git a/drivers/usb/phy/phy-fsl-usb.c b/drivers/usb/phy/phy-fsl-usb.c index 94eb292..392ab42 100644 --- a/drivers/usb/phy/phy-fsl-usb.c +++ b/drivers/usb/phy/phy-fsl-usb.c @@ -642,17 +642,6 @@ static int fsl_otg_set_peripheral(struct usb_otg *otg, return 0; } -/* Set OTG port power, only for B-device */ -static int fsl_otg_set_power(struct usb_phy *phy, unsigned mA) -{ - if (!fsl_otg_dev) - return -ENODEV; - if (phy->otg->state == OTG_STATE_B_PERIPHERAL) - pr_info("FSL OTG: Draw %d mA\n", mA); - - return 0; -} - /* * Delayed pin detect interrupt processing. * @@ -821,7 +810,6 @@ static int fsl_otg_conf(struct platform_device *pdev) /* initialize the otg structure */ fsl_otg_tc->phy.label = DRIVER_DESC; fsl_otg_tc->phy.dev = &pdev->dev; - fsl_otg_tc->phy.set_power = fsl_otg_set_power; fsl_otg_tc->phy.otg->usb_phy = &fsl_otg_tc->phy; fsl_otg_tc->phy.otg->set_host = fsl_otg_set_host;