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: 83791 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp9258qgi; Wed, 23 Nov 2016 22:00:05 -0800 (PST) X-Received: by 10.84.210.167 with SMTP id a36mr1641611pli.125.1479967205529; Wed, 23 Nov 2016 22:00:05 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id e80si9126926pfl.8.2016.11.23.22.00.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2016 22:00:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org 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-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_L4 RBL: Bad reputation (-4) [210.131.2.76 listed in bl.mailspike.net] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_BL Mailspike blacklisted 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+patch=linaro.org@lists.infradead.org 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(-) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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), \