From patchwork Thu Oct 26 12:50:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2h1bmZlbmcgWXVuICjkupHmmKXls7Ap?= X-Patchwork-Id: 10028067 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 030076022E for ; Thu, 26 Oct 2017 12:51:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6B13283C5 for ; Thu, 26 Oct 2017 12:51:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB52F28DCD; Thu, 26 Oct 2017 12:51:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5AC98283C5 for ; Thu, 26 Oct 2017 12:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=l+WtZhWe/jjEMeKLgKuIf9/OcyFy6HJ7wuhrtg8M/gE=; b=G0z4N/elYu/Np5 36QHoLAksp55r2A/CjaOPzd65nBnzfm28ebTU41JUw/rcW+mrR0uWXppivXH3Ysw+KxZ54eKif/mP wmihoH0pOZOxNUJHJwUJi4nAMaSi1EsFGpC8C3UpdjISzow3A9+BbeHjhWgFNa3/sMU9rcFeVdDID cv1KMR7bgf/9f0S9X4uKKweml7Rb3vHc8FBf818JRqSZIu1HhgWrNlbpLE6nuG/j+rSte+tdvkzQ1 x+ylpzf46Q7eh0UW98J03xaQhLyLSlQZNrAvw7/oJmMnU2uttSKYe2L3e0KwbJDyafZmKi3HA2Hg6 JlKWgb0eZKdBnDQjD8vQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e7hdL-0007R5-SE; Thu, 26 Oct 2017 12:51:39 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e7hcv-0006jV-3S; Thu, 26 Oct 2017 12:51:16 +0000 X-UUID: a31b0f58b9d24151800bcc2e70fea0b3-20171026 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1059713936; Thu, 26 Oct 2017 20:50:42 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 26 Oct 2017 20:50:40 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 26 Oct 2017 20:50:40 +0800 From: Chunfeng Yun To: Kishon Vijay Abraham I Subject: [PATCH 3/3] phy: phy-mtk-tphy: fix alignment warning Date: Thu, 26 Oct 2017 20:50:28 +0800 Message-ID: <964f480553791aab43299a8ac06cc44a9430eea2.1509022150.git.chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171026_055113_506769_06574A02 X-CRM114-Status: GOOD ( 13.63 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ryder Lee , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Chunfeng Yun , linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix alignment warning by checkpatch.pl with --strict Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/Kconfig | 8 ++++---- drivers/phy/mediatek/phy-mtk-tphy.c | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig index 88ab4e2..fb4bcd9 100644 --- a/drivers/phy/mediatek/Kconfig +++ b/drivers/phy/mediatek/Kconfig @@ -8,7 +8,7 @@ config PHY_MTK_TPHY help Say 'Y' here to add support for MediaTek T-PHY driver, it supports multiple usb2.0, usb3.0 ports, PCIe and - SATA, and meanwhile supports two version T-PHY which have - different banks layout, the T-PHY with shared banks between - multi-ports is first version, otherwise is second veriosn, - so you can easily distinguish them by banks layout. + SATA, and meanwhile supports two version T-PHY which have + different banks layout, the T-PHY with shared banks between + multi-ports is first version, otherwise is second veriosn, + so you can easily distinguish them by banks layout. diff --git a/drivers/phy/mediatek/phy-mtk-tphy.c b/drivers/phy/mediatek/phy-mtk-tphy.c index cdd33bf..02b00b7 100644 --- a/drivers/phy/mediatek/phy-mtk-tphy.c +++ b/drivers/phy/mediatek/phy-mtk-tphy.c @@ -309,7 +309,7 @@ struct mtk_tphy { }; static void hs_slew_rate_calibrate(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u2phy_banks *u2_banks = &instance->u2_banks; void __iomem *fmreg = u2_banks->fmreg; @@ -384,7 +384,7 @@ static void hs_slew_rate_calibrate(struct mtk_tphy *tphy, } static void u3_phy_instance_init(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u3phy_banks *u3_banks = &instance->u3_banks; u32 tmp; @@ -434,7 +434,7 @@ static void u3_phy_instance_init(struct mtk_tphy *tphy, } static void u2_phy_instance_init(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u2phy_banks *u2_banks = &instance->u2_banks; void __iomem *com = u2_banks->com; @@ -496,7 +496,7 @@ static void u2_phy_instance_init(struct mtk_tphy *tphy, } static void u2_phy_instance_power_on(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u2phy_banks *u2_banks = &instance->u2_banks; void __iomem *com = u2_banks->com; @@ -530,7 +530,7 @@ static void u2_phy_instance_power_on(struct mtk_tphy *tphy, } static void u2_phy_instance_power_off(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u2phy_banks *u2_banks = &instance->u2_banks; void __iomem *com = u2_banks->com; @@ -565,7 +565,7 @@ static void u2_phy_instance_power_off(struct mtk_tphy *tphy, } static void u2_phy_instance_exit(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u2phy_banks *u2_banks = &instance->u2_banks; void __iomem *com = u2_banks->com; @@ -609,7 +609,7 @@ static void u2_phy_instance_set_mode(struct mtk_tphy *tphy, } static void pcie_phy_instance_init(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u3phy_banks *u3_banks = &instance->u3_banks; u32 tmp; @@ -682,7 +682,7 @@ static void pcie_phy_instance_init(struct mtk_tphy *tphy, } static void pcie_phy_instance_power_on(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u3phy_banks *bank = &instance->u3_banks; u32 tmp; @@ -698,7 +698,7 @@ static void pcie_phy_instance_power_on(struct mtk_tphy *tphy, } static void pcie_phy_instance_power_off(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u3phy_banks *bank = &instance->u3_banks; @@ -714,7 +714,7 @@ static void pcie_phy_instance_power_off(struct mtk_tphy *tphy, } static void sata_phy_instance_init(struct mtk_tphy *tphy, - struct mtk_phy_instance *instance) + struct mtk_phy_instance *instance) { struct u3phy_banks *u3_banks = &instance->u3_banks; void __iomem *phyd = u3_banks->phyd; @@ -916,7 +916,7 @@ static int mtk_phy_set_mode(struct phy *phy, enum phy_mode mode) } static struct phy *mtk_phy_xlate(struct device *dev, - struct of_phandle_args *args) + struct of_phandle_args *args) { struct mtk_tphy *tphy = dev_get_drvdata(dev); struct mtk_phy_instance *instance = NULL; @@ -1015,7 +1015,7 @@ static int mtk_tphy_probe(struct platform_device *pdev) tphy->nphys = of_get_child_count(np); tphy->phys = devm_kcalloc(dev, tphy->nphys, - sizeof(*tphy->phys), GFP_KERNEL); + sizeof(*tphy->phys), GFP_KERNEL); if (!tphy->phys) return -ENOMEM;