From mboxrd@z Thu Jan 1 00:00:00 1970 From: mturquette@linaro.org (Michael Turquette) Date: Mon, 30 Mar 2015 18:21:18 -0700 Subject: [PATCH 2/6] clk: mediatek: Add initial common clock support for Mediatek SoCs. In-Reply-To: <1427737245-4064-3-git-send-email-s.hauer@pengutronix.de> References: <1427737245-4064-1-git-send-email-s.hauer@pengutronix.de> <1427737245-4064-3-git-send-email-s.hauer@pengutronix.de> Message-ID: <20150331012118.7930.69028@quantum> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Quoting Sascha Hauer (2015-03-30 10:40:41) > +static void mtk_pll_set_rate_regs(struct clk_hw *hw, u32 pcw, > + int postdiv) > +{ > + struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); > + u32 con1, pd, val; > + int pll_en; > + > + /* set postdiv */ > + pd = readl(pll->pd_addr); > + pd &= ~(0x7 << pll->data->pd_shift); Hi Sascha, I found a couple of magic numbers in here. Can we replace these with some descriptive constant? Regards, Mike