From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932877AbcEXUME (ORCPT ); Tue, 24 May 2016 16:12:04 -0400 Received: from fallback4.mail.ru ([94.100.181.169]:37780 "EHLO fallback4.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932629AbcEXUMC (ORCPT ); Tue, 24 May 2016 16:12:02 -0400 From: Roman Volkov To: Arnd Bergmann Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Boyd , Michael Turquette , Roman Volkov , Tony Prisk Subject: [PATCH 0/2] Rework clk/vt8500 wm8650_find_pll_bits() Date: Tue, 24 May 2016 23:07:51 +0300 Message-Id: <1464120473-1808-1-git-send-email-v1ron@mail.ru> X-Mailer: git-send-email 2.8.0 X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Volkov Hi Arnd and others, This patch finally removes the warnings from GCC about possibly uninitialized variables 'best_div2', 'best_div1', and 'best_mul'. Also one of the functions is reworked, so that the algorithm is much easier. This is to continue the work started in [1]. This code is tested on WM8650. Also the testing app was used in user-mode to check possible values and performance [2]. [1] https://lkml.org/lkml/2016/2/1/149 [2] https://github.com/v1ron/vt8500-clkrange Thanks, Roman Volkov (2): clk/vt8500: Rework wm8650_find_pll_bits() clk/vt8500: Fix compilation warnings drivers/clk/clk-vt8500.c | 81 +++++++++++++++++++++++------------------------- 1 file changed, 39 insertions(+), 42 deletions(-) -- 2.8.0