From patchwork Thu Nov 24 05:57:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9444867 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 0F14D60235 for ; Thu, 24 Nov 2016 06:00:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB6B226419 for ; Thu, 24 Nov 2016 06:00:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE02426861; Thu, 24 Nov 2016 06:00:30 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE32B26419 for ; Thu, 24 Nov 2016 06:00:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9n3W-0001Fs-H2; Thu, 24 Nov 2016 05:58:46 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9n3O-00013X-OI for linux-arm-kernel@lists.infradead.org; Thu, 24 Nov 2016 05:58:41 +0000 Received: from pug.jp.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id uAO5vlj5010771; Thu, 24 Nov 2016 14:57:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com uAO5vlj5010771 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1479967072; bh=scKk50KDr87FGdEElkzJYqHgwuRpxCXU0wNenJ1PmzA=; h=From:To:Cc:Subject:Date:From; b=E1WG+ahOhArLJ7aE5udsdeTsmkSv3kmEAZ+JYazWTX/y2XvR+SZ2eI2QAyGXewRAX NJiHtt1uhkQ0J4ZzngxgqCqRNRUQrX0pN4Opb6wQB4/ze8AJBiUgG4H6uzz6VmrWqB mXpOmWjNX6RuxLxOUF9R3bUqleG0tmIeWwSmUBpFlYHs1eGlpBLmNHlToRgDbJ0pv+ IhqPCTMV+0Jh1zzg8CjdP1BNm1U1LMR4DvKawt5jF0MSe2SlDW67HXe9WEazj9AWXk hRH2WZKkW6h/s9kNZMm90HqNUy1jo5CMVgoNAjPcAZCTwwUZCRtYp6XiOO+PgFOg50 aVzZb81iuSwFw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-clk@vger.kernel.org Subject: [PATCH v2 1/3] clk: uniphier: remove unneeded member name for union Date: Thu, 24 Nov 2016 14:57:39 +0900 Message-Id: <1479967061-25975-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161123_215839_278898_3FFAEF61 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The struct member name of a union is unneeded. This makes the code a bit shorter. Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added drivers/clk/uniphier/clk-uniphier-core.c | 8 ++++---- drivers/clk/uniphier/clk-uniphier-mio.c | 2 +- drivers/clk/uniphier/clk-uniphier.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c index 26c53f7..726a10a 100644 --- a/drivers/clk/uniphier/clk-uniphier-core.c +++ b/drivers/clk/uniphier/clk-uniphier-core.c @@ -29,16 +29,16 @@ static struct clk_hw *uniphier_clk_register(struct device *dev, switch (data->type) { case UNIPHIER_CLK_TYPE_FIXED_FACTOR: return uniphier_clk_register_fixed_factor(dev, data->name, - &data->data.factor); + &data->factor); case UNIPHIER_CLK_TYPE_FIXED_RATE: return uniphier_clk_register_fixed_rate(dev, data->name, - &data->data.rate); + &data->rate); case UNIPHIER_CLK_TYPE_GATE: return uniphier_clk_register_gate(dev, regmap, data->name, - &data->data.gate); + &data->gate); case UNIPHIER_CLK_TYPE_MUX: return uniphier_clk_register_mux(dev, regmap, data->name, - &data->data.mux); + &data->mux); default: dev_err(dev, "unsupported clock type\n"); return ERR_PTR(-EINVAL); diff --git a/drivers/clk/uniphier/clk-uniphier-mio.c b/drivers/clk/uniphier/clk-uniphier-mio.c index 218d20f..4974d38 100644 --- a/drivers/clk/uniphier/clk-uniphier-mio.c +++ b/drivers/clk/uniphier/clk-uniphier-mio.c @@ -30,7 +30,7 @@ .name = "sd" #ch "-sel", \ .type = UNIPHIER_CLK_TYPE_MUX, \ .idx = -1, \ - .data.mux = { \ + .mux = { \ .parent_names = { \ "sd-44m", \ "sd-33m", \ diff --git a/drivers/clk/uniphier/clk-uniphier.h b/drivers/clk/uniphier/clk-uniphier.h index 0244dba..4eb4f6d 100644 --- a/drivers/clk/uniphier/clk-uniphier.h +++ b/drivers/clk/uniphier/clk-uniphier.h @@ -62,7 +62,7 @@ struct uniphier_clk_data { struct uniphier_clk_fixed_rate_data rate; struct uniphier_clk_gate_data gate; struct uniphier_clk_mux_data mux; - } data; + }; }; #define UNIPHIER_CLK_FACTOR(_name, _idx, _parent, _mult, _div) \ @@ -70,7 +70,7 @@ struct uniphier_clk_data { .name = (_name), \ .type = UNIPHIER_CLK_TYPE_FIXED_FACTOR, \ .idx = (_idx), \ - .data.factor = { \ + .factor = { \ .parent_name = (_parent), \ .mult = (_mult), \ .div = (_div), \ @@ -83,7 +83,7 @@ struct uniphier_clk_data { .name = (_name), \ .type = UNIPHIER_CLK_TYPE_GATE, \ .idx = (_idx), \ - .data.gate = { \ + .gate = { \ .parent_name = (_parent), \ .reg = (_reg), \ .bit = (_bit), \