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]
Message-ID: <20211008134957.GA1289551@roeck-us.net>
Date:   Fri, 8 Oct 2021 06:49:57 -0700
From:   Guenter Roeck <linux@...ck-us.net>
To:     Zev Weiss <zev@...ilderbeest.net>
Cc:     Jean Delvare <jdelvare@...e.com>, linux-hwmon@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/8] hwmon: (pmbus/lm25066) Mark lm25066_coeff array const

On Tue, Sep 28, 2021 at 02:22:39AM -0700, Zev Weiss wrote:

Commit description goes here.

> Signed-off-by: Zev Weiss <zev@...ilderbeest.net>

Applied. 

Thanks,
Guenter

> ---
>  drivers/hwmon/pmbus/lm25066.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c
> index 1ff5407b6977..dbbf8571c437 100644
> --- a/drivers/hwmon/pmbus/lm25066.c
> +++ b/drivers/hwmon/pmbus/lm25066.c
> @@ -51,7 +51,7 @@ struct __coeff {
>  #define PSC_CURRENT_IN_L	(PSC_NUM_CLASSES)
>  #define PSC_POWER_L		(PSC_NUM_CLASSES + 1)
>  
> -static struct __coeff lm25066_coeff[][PSC_NUM_CLASSES + 2] = {
> +static const struct __coeff lm25066_coeff[][PSC_NUM_CLASSES + 2] = {
>  	[lm25056] = {
>  		[PSC_VOLTAGE_IN] = {
>  			.m = 16296,
> @@ -449,7 +449,7 @@ static int lm25066_probe(struct i2c_client *client)
>  	int config;
>  	struct lm25066_data *data;
>  	struct pmbus_driver_info *info;
> -	struct __coeff *coeff;
> +	const struct __coeff *coeff;
>  
>  	if (!i2c_check_functionality(client->adapter,
>  				     I2C_FUNC_SMBUS_READ_BYTE_DATA))

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ