Received: by 10.192.165.148 with SMTP id m20csp1862506imm; Sun, 6 May 2018 01:03:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqky0xx4JTd9mq6lX1K+k9jVpxo5vNStk1eSPKpiMeWdmam0iUq5LP+mpEzXZ98ud6tRSwI X-Received: by 10.98.254.14 with SMTP id z14mr3409306pfh.73.1525593810117; Sun, 06 May 2018 01:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525593810; cv=none; d=google.com; s=arc-20160816; b=m+1u7G2VgvEoup/6SPAPEbQmz0aO7mKMXdt3ijjx3Wk1sUQVVnE2k7S8bV9zCZwh9R ZNMOcea+8abNvTThif2vjmG/6iJHpzSin9OvlhIKO2RlAQ8dU8a4hgwLP7ZDZRABgVKi t9Av2TA5bHyeTMBFROugA7k0lti4R+3ZDJMcnw6CqSvKHQSmQVUalEv0tyFuAdR2ybVN HETPmF+S2ET6NXbI/AfzQt7RXx2v3SiSBCYV0MU9CFqK1O1IKg1nslPjmHpUj+aA8nlp VlwCzINQzaerPoKbGIpjCORLLIiYkTAwlNdV4Eje7MkzDo7t94bmu0RT5o9KtgeT26b0 HwJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date :arc-authentication-results; bh=3d1U8PmfsGC2XJMaRwaaWtb1NC9p545Lf1Vm6KQN4SY=; b=OlzH0nJ7HkDKLebw5z6fRj2ZTdminyJzxk8HhjhfPZkLBjXAc2+hL1B9SNbLO6aZzk Mfg9iCc4LhF+MJ5VWvBhUrQP6yzj84p30N28j4Qc9pJSTpFrjh3h6nhwTmjl2Atsh5Ik r4txfQIAoVgsSlpOOWvniF69/lioUspdjGnnIInWoKbSXv3dWHsVqZBDpbzLQqWFjMrA iSIfeBgfTwP71Ox7hbSsgSrhJxq0KfzLJCRy8fVb5qA+wbcY1q7kmryELe78tKeMqmRt wHN+2ilyZwuOc6jDStvfYpV6RVn8UlwGrBTpDEXImGsDnyXBJeeGQKQYoHoP+QA/2JBq 9QAQ== 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 d26-v6si15688804pge.576.2018.05.06.01.03.14; Sun, 06 May 2018 01:03:30 -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 S1751266AbeEFIC6 (ORCPT + 99 others); Sun, 6 May 2018 04:02:58 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47418 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057AbeEFICw (ORCPT ); Sun, 6 May 2018 04:02:52 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 850C58046D; Sun, 6 May 2018 10:02:50 +0200 (CEST) Date: Sun, 6 May 2018 10:02:50 +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] media: i2c: lm3560: use conservative defaults Message-ID: <20180506080250.GA24114@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline 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 --+QahgC5+KEYLbs62 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 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 --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlrutqoACgkQMOfwapXb+vKAhwCgw3VcquxPd6JBDpXbdEgC00AC jhwAnijIiGbVPSqdr41LZYehCC7/vjiV =mn6q -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--