From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 468F93A257C; Thu, 11 Jun 2026 09:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781169212; cv=none; b=VSg9jqbA8GrcekPHcz1hC9I6oibVUZmxNrc+BnGNGY7Q0ItC95Boa2qA8c9CxtSha6mqibcbtoMVvSZ53MpJxYn3evn53hVhR8cJksOYbTnAry/jgrGGXaj43yD+rc6yKkG8jL6OQh5lOtfpIcGtzBsaejKrhW6Bm+WOKSN5+tE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781169212; c=relaxed/simple; bh=gKOCqxKCuRbslboKZqBeDKoCrIbSkktbxTTZx61IGbk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ATpdWZhMX6JGrNrRg9rzu7gIn8u6v0IKy5WHO/mtSmhxsnFZFXW+3ODNtOUvcObiklrbea9v8dua0kEt+PZuEgeOPIWzayon6Kb1177HJFLlDgapk4/qEgBH6qxfs+byJRZHnrWJEgtwRw4ZMidU/TLdq0gR2yHvYI/FQ7tdp8Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P5BO8pcr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P5BO8pcr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E3A51F0089C; Thu, 11 Jun 2026 09:13:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781169210; bh=BxXOFmqgKP//yNlaJchWiTOa6h3bEte8EY9Rwi4U/mE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=P5BO8pcrwDPMEAjCp8GZuk8zUXnYlfcEZrOUg1x7lzyuj1V0m2o6uiNnh0bGMTGlY ci0eDgeIPen4OiD7Ttm2DAW/Zn7E0E3F1wHEP1up/v+MH7m0TsifLukne+1QnWJkuC qG54ld7AXhJvtoWR1Yxmzp0SQ1vzJ9LIvBnKB6dHGtvjX53DU6D8Fbn3YylUS15J57 GkAB4JKboMbSx/Y0a+xe9eoo+sirescKZLM4xeQ04zZHfamsEI/tFFoQi1gyFhTUVd wCwOXKb7YDPJrVI3CmisAKluhmyZ4sNiB8M1OJHihaF7Hs39fL3j8+BTH3rh/Fr50s 0DjVZ4N5RSdQw== Date: Thu, 11 Jun 2026 11:13:28 +0200 From: Krzysztof Kozlowski To: Ramshouriesh Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Bryan O'Donoghue , Vladimir Zapolskiy , Loic Poulain , Bryan O'Donoghue , Vinod Koul , Neil Armstrong , Aleksandrs Vinarskis , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH 3/9] media: i2c: hm1092: add Himax HM1092 mono NIR sensor driver Message-ID: <20260611-sloppy-happy-pony-1efc8d@quoll> References: <20260610-a14-himax-hm1092-v1-0-0c9907da47ed@gmail.com> <20260610-a14-himax-hm1092-v1-3-0c9907da47ed@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20260610-a14-himax-hm1092-v1-3-0c9907da47ed@gmail.com> On Wed, Jun 10, 2026 at 04:39:28PM +0530, Ramshouriesh wrote: > +module_i2c_driver(hm1092_i2c_driver); > + > +MODULE_DESCRIPTION("Himax HM1092 sensor driver draft"); > +MODULE_LICENSE("GPL"); > diff --git a/drivers/media/i2c/hm1092_regs.h b/drivers/media/i2c/hm1092_r= egs.h > new file mode 100644 > index 000000000000..4df2d5b49d81 > --- /dev/null > +++ b/drivers/media/i2c/hm1092_regs.h > @@ -0,0 +1,223 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* HM1092 register tables extracted from Qualcomm Chromatix sensor modul= e. > + * Source: com.qti.sensormodule.hm1092.bin > + * Generator: hm1092-re/gen_hm1092_regs.py > + * DO NOT HAND EDIT =E2=80=94 regenerate from the bin. > + */ > + > +struct hm1092_reg { > + u16 address; > + u8 val; > +}; > + > +static const struct hm1092_reg hm1092_init_regs[] =3D { You must NOT define data in headers. This is not how C is written - you invite data duplication without any gains/benefits. Best regards, Krzysztof