From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754426AbbBTOUK (ORCPT ); Fri, 20 Feb 2015 09:20:10 -0500 Received: from hofr.at ([212.69.189.236]:47992 "EHLO mail.hofr.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753921AbbBTOUI (ORCPT ); Fri, 20 Feb 2015 09:20:08 -0500 Date: Fri, 20 Feb 2015 15:20:06 +0100 From: Nicholas Mc Guire To: Tomi Valkeinen Cc: Nicholas Mc Guire , Jean-Christophe Plagniol-Villard , Jingoo Han , Daniel Vetter , Fabian Frederick , Laurent Pinchart , Wolfram Sang , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] video: fbdev: use msecs_to_jiffies for time conversion Message-ID: <20150220142006.GA11757@opentech.at> References: <1423214041-15818-1-git-send-email-hofrat@osadl.org> <54E72774.1070809@ti.com> <20150220140110.GA25767@opentech.at> <54E73F78.3050009@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54E73F78.3050009@ti.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Feb 2015, Tomi Valkeinen wrote: > On 20/02/15 16:01, Nicholas Mc Guire wrote: > > >>> pr_debug("%s(): task ending\n", __func__); > >>> @@ -1460,7 +1460,7 @@ static void pxafb_disable_controller(struct pxafb_info *fbi) > >>> #ifdef CONFIG_FB_PXA_SMARTPANEL > >>> if (fbi->lccr0 & LCCR0_LCDT) { > >>> wait_for_completion_timeout(&fbi->refresh_done, > >>> - 200 * HZ / 1000); > >>> + msecs_to_jiffies(200); > >> > >> That will not compile. > > > No compile warning or errors > > > > could you send me the compile error message and the toolchain you > > are using - this change should not really have any noticable impact. > > I didn't compile it. It's missing a closing parenthesis. > > This is one reason I'm not very fond of cleanups to drivers that the > patch sender cannot test... They may cause more problems than they help. > That was the intent of compile testing the patch but it seems that it was not covered by the config in use - sorry for that, it was missing the [*] PXA Smartpanel LCD support so root@debian:~/linux-next# grep CONFIG_FB_PXA_SMARTPANEL .config # CONFIG_FB_PXA_SMARTPANEL is not set The motivation for the cleanup simply was code reasdability - will fix this up and compile check with a proper config. thx! hofrat