lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 20 Sep 2022 18:12:18 +0200
From:   Sebastian Reichel <sebastian.reichel@...labora.com>
To:     ChiaEn Wu <peterwu.pub@...il.com>, broonie@...nel.org,
        mazziesaccount@...il.com
Cc:     pavel@....cz, robh+dt@...nel.org,
        krzysztof.kozlowski+dt@...aro.org, matthias.bgg@...il.com,
        jic23@...nel.org, lars@...afoo.de,
        andriy.shevchenko@...ux.intel.com, chiaen_wu@...htek.com,
        alice_chen@...htek.com, cy_huang@...htek.com,
        linux-leds@...r.kernel.org, devicetree@...r.kernel.org,
        linux-arm-kernel@...ts.infradead.org,
        linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
        linux-pm@...r.kernel.org, linux-iio@...r.kernel.org,
        szunichen@...il.com
Subject: Re: [PATCH v11 4/8] lib: add linear range index macro

Hi,

On Thu, Sep 15, 2022 at 05:47:32PM +0800, ChiaEn Wu wrote:
> From: ChiaEn Wu <chiaen_wu@...htek.com>
> 
> Add linear_range_idx macro for declaring the linear_range struct simply.
> 
> Reviewed-by: Matti Vaittinen <mazziesaccount@...il.com>
> Signed-off-by: ChiaEn Wu <chiaen_wu@...htek.com>
> ---

Thanks, queued via immutable branch:

The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868:

  Linux 6.0-rc1 (2022-08-14 15:50:18 -0700)

are available in the Git repository at:

  ssh://git@...olite.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/psy-linear-range-for-v6.1-signed

for you to fetch changes up to c2f2e2c3aecdbabf822272a4b6e7d91537633cd9:

  lib: add linear range index macro (2022-09-16 22:27:19 +0200)

----------------------------------------------------------------
Immutable branch for linear range and power-supply for v6.1

Immutable branch between linear range and power-supply for driver
changes in MT6370.

Signed-off-by: Sebastian Reichel <sebastian.reichel@...labora.com>

----------------------------------------------------------------
ChiaEn Wu (1):
      lib: add linear range index macro

 include/linux/linear_range.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- Sebastian

>  include/linux/linear_range.h | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/include/linux/linear_range.h b/include/linux/linear_range.h
> index fd3d0b3..2e4f4c3 100644
> --- a/include/linux/linear_range.h
> +++ b/include/linux/linear_range.h
> @@ -26,6 +26,17 @@ struct linear_range {
>  	unsigned int step;
>  };
>  
> +#define LINEAR_RANGE(_min, _min_sel, _max_sel, _step)		\
> +	{							\
> +		.min = _min,					\
> +		.min_sel = _min_sel,				\
> +		.max_sel = _max_sel,				\
> +		.step = _step,					\
> +	}
> +
> +#define LINEAR_RANGE_IDX(_idx, _min, _min_sel, _max_sel, _step)	\
> +	[_idx] = LINEAR_RANGE(_min, _min_sel, _max_sel, _step)
> +
>  unsigned int linear_range_values_in_range(const struct linear_range *r);
>  unsigned int linear_range_values_in_range_array(const struct linear_range *r,
>  						int ranges);
> -- 
> 2.7.4
> 

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ