Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2102898imm; Mon, 16 Jul 2018 02:09:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNyky7ZkxQe7hnS8RUIshrZQ5NoVnWe8DceFmHaXejpyHW27RmqbjEpGCWJVD5qn6irHxk X-Received: by 2002:a63:e318:: with SMTP id f24-v6mr14373920pgh.175.1531732153902; Mon, 16 Jul 2018 02:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531732153; cv=none; d=google.com; s=arc-20160816; b=HfFcdmm1FmuI7q5Rli5tE8Eq3hl31Rx5vIbbKiMnkcFn3t63AwdBWEzVAodezwH3Gf BPCp1UD3vEAbdljY+8nW9cX94wlSMis33NjRLZFU2bJYeoRuYCXp+gDw0tDTeXF/7nqX J4PlsUBZATBcLWSzaAs6Eq85KiLnhFuGqPSATJvKemBXyh7xpL291SLYna7cg+3/nY2a dfvUdI+xrhmwTsOieFvgJdcsHmVOSsZBriEBVCZzPgFknHH6YGZ/kogfOswFxFCXLXLw LJM9vZCnqcbt8L8mjflP0tcxTOS8u9gj1/ivGX80UUkfZAgUTzQyZeQFzhAMl7J2yEKR IRQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:arc-authentication-results; bh=qB/2n62Nsj5KHQX95QyNrMTKYvSa311QeSdk2N3iu94=; b=HbkaY9A1JHSRHeUqxWPLE7XQM+3HDgUNdnordWbAtpyhkqRIucSE7pfsiSWTUfK3Fx 6nUwQAxXD0nMkaRw5i6UGlfKBuMNTeiNfGUd3l9VLalC7woV6vYisiN66x6ukYIUwNb4 SsvlVDp2rq8fR8RsFJc7J+FxGAJt8+fPuL0x9qg5Ua8KupDxbWpOpqU49qOifUupCS9h VG6mT70itogaDAVxw4J2DWiV3XEkhPCCldziUqrOSw2zqLYSSwC7tlksTRQxVvFNgHws C4TSi5fXuRr8ifPCEyLYtIHouFzqtwnkeIGxsims3lRKym1B7CWDZAzCxuewrk3tlclM ykiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59-v6si29796890plp.496.2018.07.16.02.08.59; Mon, 16 Jul 2018 02:09:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729883AbeGPJen (ORCPT + 99 others); Mon, 16 Jul 2018 05:34:43 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35058 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbeGPJen (ORCPT ); Mon, 16 Jul 2018 05:34:43 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 030FF8051F; Mon, 16 Jul 2018 11:08:14 +0200 (CEST) Date: Mon, 16 Jul 2018 11:08:14 +0200 From: Pavel Machek To: kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org, gshark.jeong@gmail.com, m.chehab@samsung.com, sakari.ailus@iki.fi, linux-media@vger.kernel.org Subject: [PATCH v2] media: i2c: lm3560: use conservative defaults Message-ID: <20180716090814.GA4505@amd> References: <20180506080250.GA24114@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline In-Reply-To: <20180506080250.GA24114@amd> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable If no pdata is found, we should use lowest current settings, not highest. Signed-off-by: Pavel Machek --- v2: I got notification from patchwork that patch no longer applies, so I'm rediffing the patch. diff --git a/drivers/media/i2c/lm3560.c b/drivers/media/i2c/lm3560.c index b600e03a..c4e5ed5 100644 --- a/drivers/media/i2c/lm3560.c +++ b/drivers/media/i2c/lm3560.c @@ -420,14 +434,14 @@ static int lm3560_probe(struct i2c_client *client, pdata =3D devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); if (pdata =3D=3D NULL) return -ENODEV; - pdata->peak =3D LM3560_PEAK_3600mA; - pdata->max_flash_timeout =3D LM3560_FLASH_TOUT_MAX; + pdata->peak =3D LM3560_PEAK_1600mA; + pdata->max_flash_timeout =3D LM3560_FLASH_TOUT_MIN; /* led 1 */ - pdata->max_flash_brt[LM3560_LED0] =3D LM3560_FLASH_BRT_MAX; - pdata->max_torch_brt[LM3560_LED0] =3D LM3560_TORCH_BRT_MAX; + pdata->max_flash_brt[LM3560_LED0] =3D LM3560_FLASH_BRT_MIN; + pdata->max_torch_brt[LM3560_LED0] =3D LM3560_TORCH_BRT_MIN; /* led 2 */ - pdata->max_flash_brt[LM3560_LED1] =3D LM3560_FLASH_BRT_MAX; - pdata->max_torch_brt[LM3560_LED1] =3D LM3560_TORCH_BRT_MAX; + pdata->max_flash_brt[LM3560_LED1] =3D LM3560_FLASH_BRT_MIN; + pdata->max_torch_brt[LM3560_LED1] =3D LM3560_TORCH_BRT_MIN; } flash->pdata =3D pdata; flash->dev =3D &client->dev; --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltMYH4ACgkQMOfwapXb+vKsegCggcZUJYFiZWFzxBzDTN6kap2b YsEAnjdMLGatnsTzSchv4dd+8REfgtkz =Y7Pd -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l--