Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753833AbdIDPQR (ORCPT ); Mon, 4 Sep 2017 11:16:17 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36437 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753746AbdIDPQQ (ORCPT ); Mon, 4 Sep 2017 11:16:16 -0400 X-Google-Smtp-Source: ADKCNb6y+f5jrmEVoYdcyIXlZS6wkOZsswjMd7astWU80xvApGkizND3yQh2nTNgP0xQQdNQgg16yg== Date: Mon, 4 Sep 2017 16:16:12 +0100 From: Lee Jones To: Derek Basehore Cc: linux-kernel@vger.kernel.org, thierry.reding@gmail.com, jingoohan1@gmail.com, briannorris@chromium.org, linux-pwm@vger.kernel.org Subject: Re: [PATCH v2] pwm_bl: Fix overflow condition Message-ID: <20170904151612.bbhb4qrbkut77lyi@dell> References: <20170829203434.6826-1-dbasehore@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170829203434.6826-1-dbasehore@chromium.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 578 Lines: 18 On Tue, 29 Aug 2017, Derek Basehore wrote: > This fixes an overflow condition that can happen with high max > brightness and period values in compute_duty_cycle. This fixes it by > using a 64 bit variable for computing the duty cycle. > > Signed-off-by: Derek Basehore > --- > drivers/video/backlight/pwm_bl.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) Applied for v4.15, thanks. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog