Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp835811ybt; Wed, 1 Jul 2020 11:12:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqO1lHGhsSCwEa+dkeahoefxHJHTLx0HfoI44RrbPpyVH9tidzNKStd/eocm1IY7BaMslc X-Received: by 2002:a17:906:2318:: with SMTP id l24mr25543184eja.291.1593627127842; Wed, 01 Jul 2020 11:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593627127; cv=none; d=google.com; s=arc-20160816; b=Ky9JqDXazL9TGapE0KkW1qWcL2qmd465evtlcUenDiNK2OWIRxdCWpVdbrE/1jf+TS j+bMlSyLtMrfbxiudV61nOfRzD3z95a1OGH5ljtdWd+kiSNhVgaby6s5yPM6Bxn9Q172 l93qt+e5myklst6QL5RVc7BFKPCRkchXcbyrdqHqfRZ9GqclrBUBKh3Ifz1YYjg7TZdh H3vlWLngos9HS0KC/a91IaHWgRhA1/quVtpdIMgNhcdZz981IFHQnYzl8h3xRIXyT7OV AW54Qyitr8xGiHkL7Y+cLCFe3TQ+twmrISjIZYPc8KoTvj49FF0NfABmY09aojSPuZ1c HjFA== 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:cc :to:from:date:dkim-signature; bh=ApXK7n9iU+3T5Yswzbhi1+TbU9CmlUlXcEJRsyubwQc=; b=ejpllWHzglRGHO6fERqKwsyGbJxYUSPFu3nSXoIJcfI/4PBYIdlC76lXeayqhfOFsp xaY8wgrcvavGkpFXcN1bIUB0w75Fglr+iPbhYGs7fuQoUjUqbSpVoZNZOU7Wxnw2W8Pp glhICWata0rQvIdLwfMiQ8/qtek/XYivbvDbzs24GX1QRbIt/sBz/o1+6qV5P8GNe+dJ nGTKc7ZVO20UA05s9vKAJEEkQXQicFukG3F2aouQ8W0ylDlAgITrfwdimizB/QfJmt3J eFYLX2kV4teQTTGsz5okUsFSn5u6ZkzGZCi0ntBM6VVaVt3BV+XzHxz9SSOhE3yDchdH 5u9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SQ3o1PnP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l14si4282468edq.355.2020.07.01.11.11.44; Wed, 01 Jul 2020 11:12:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SQ3o1PnP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732849AbgGASJQ (ORCPT + 99 others); Wed, 1 Jul 2020 14:09:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:46024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbgGASJQ (ORCPT ); Wed, 1 Jul 2020 14:09:16 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 25E80207F5; Wed, 1 Jul 2020 18:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593626955; bh=oRoMkCtjdUg55KH56aj8mpptY7/t3IumKCMW0WzoHd0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SQ3o1PnPswZBz/haPZrL4LB0SQ1An4nKpJPR55M96+NjSjI2gdan5iwXlZW6td/Qz ziEFoDkOc4eE6a+w4Zpo8/MgSkCx3p1t6fYlS3Ot3X8VKPwT4RULNrF7VICH0k2esD c17ACg3qA9KWbGLofFSehLPEEYOGBTE9dHjqG0ek= Date: Wed, 1 Jul 2020 19:09:13 +0100 From: Mark Brown To: Christoph Fritz Cc: Liam Girdwood , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] regulator: fan53880: Add initial support Message-ID: <20200701180913.GA22871@sirena.org.uk> References: <20200630185203.22882-1-chf.fritz@googlemail.com> <20200630185203.22882-2-chf.fritz@googlemail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <20200630185203.22882-2-chf.fritz@googlemail.com> X-Cookie: fortune: No such file or directory User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 30, 2020 at 08:52:02PM +0200, Christoph Fritz wrote: > This patch adds support for ON Semiconductor FAN53880 regulator. >=20 > The FAN53880 is an I2C porgrammable power management IC (PMIC) > that contains a BUCK (step-down converter), four LDOs (low dropouts) > and one BOOST (step-up converter). It is designed for mobile power > applications. This doesn't build with current code, there are *many* errors in the form /mnt/kernel/drivers/regulator/fan53880.c:48:52: error: array type has incom= plete element type 'struct regulator_linear_range' .linear_ranges =3D (struct regulator_linear_range[]) { \ ^ /mnt/kernel/drivers/regulator/fan53880.c:63:2: note: in expansion of macro = 'FAN53880_LDO' FAN53880_LDO(1, "VIN12", 2800000), ^~~~~~~~~~~~ In file included from /mnt/kernel/drivers/regulator/fan53880.c:5: /mnt/kernel/include/linux/regulator/driver.h:46:2: error: field name not in= record or union initializer .min =3D _min_uV, \ ^ /mnt/kernel/drivers/regulator/fan53880.c:49:9: note: in expansion of macro = 'REGULATOR_LINEAR_RANGE' REGULATOR_LINEAR_RANGE(_default, 0x0, 0x0, 0), \ ^~~~~~~~~~~~~~~~~~~~~~ /mnt/kernel/drivers/regulator/fan53880.c:63:2: note: in expansion of macro = 'FAN53880_LDO' FAN53880_LDO(1, "VIN12", 2800000), ^~~~~~~~~~~~ /mnt/kernel/include/linux/regulator/driver.h:46:2: note: (near initializati= on for '(anonymous)') .min =3D _min_uV, \ ^ /mnt/kernel/drivers/regulator/fan53880.c:49:9: note: in expansion of macro = 'REGULATOR_LINEAR_RANGE' REGULATOR_LINEAR_RANGE(_default, 0x0, 0x0, 0), \ ^~~~~~~~~~~~~~~~~~~~~~ /mnt/kernel/drivers/regulator/fan53880.c:63:2: note: in expansion of macro = 'FAN53880_LDO' FAN53880_LDO(1, "VIN12", 2800000), ^~~~~~~~~~~~ /mnt/kernel/include/linux/regulator/driver.h:47:2: error: field name not in= record or union initializer .min_sel =3D _min_sel, \ ^ most likely due to the conversion introduced in 60ab7f4153b6af46 (regulator: use linear_ranges helper). Please rebase against current code. --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEyBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl780UgACgkQJNaLcl1U h9AT8wf495r68vZKdK9avH8NnewD+DkphtHtdWLDgwWHgGUfGPmb+QzTFzE00v6W FdLMuOPaUfnBn/bKB6Dzzoh/qm2ZK37JkyQOLEQhOBtCbkutE6T/rFWRgMGJvBl0 +BKye8EojxtIhOBD2qSinQ4pTWudULWCFFZoPOhm63IPDbOcdMQmLi3X+8EkXGqd YBIStS9+jfH9yCG9h4p3+VYlIG1OEwiZekjFgpFAgTT1E4vcJhhspC1NjP3XRMCD C/eqSRdAOjEy2GvOH0Dao7/UgEyZXvmOJ1kjQK4AN8ZpjvpgU0iee9pFDQkCoZfV 1vJQajBaumpmIymOESyi1WndLydF =xM/a -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--