From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932609AbcE0Qjs (ORCPT ); Fri, 27 May 2016 12:39:48 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33876 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835AbcE0Qjq (ORCPT ); Fri, 27 May 2016 12:39:46 -0400 Date: Fri, 27 May 2016 09:39:43 -0700 From: Brian Norris To: Boris Brezillon Cc: Thierry Reding , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Doug Anderson Subject: Re: [PATCH] pwm: don't allow duty cycle higher than period Message-ID: <20160527163943.GB80118@google.com> References: <1464296730-121773-1-git-send-email-briannorris@chromium.org> <20160527093439.5ad237c5@bbrezillon> <20160527163533.GA80118@google.com> <20160527183814.6f8f4ba7@bbrezillon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160527183814.6f8f4ba7@bbrezillon> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 27, 2016 at 06:38:14PM +0200, Boris Brezillon wrote: > On Fri, 27 May 2016 09:35:33 -0700 > Brian Norris wrote: > > On Fri, May 27, 2016 at 09:34:39AM +0200, Boris Brezillon wrote: > > Now that you mention it, I think you've also dropped some signed > > (negative value) checking in pwm_config(). I'll squash in your diff + > > some pwm_config() fixes. > > ->period and ->duty_cycle are unsigned now ;). Not in pwm_config(). And we don't want to implitly make thos into large unsigned values. Brian