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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101222000426.GA24834@oksana.dev.rtsoft.ru>
Date:	Wed, 22 Dec 2010 03:04:26 +0300
From:	Anton Vorontsov <cbouatmailru@...il.com>
To:	Lars-Peter Clausen <lars@...afoo.de>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] POWER: gpio-chager: Provide default name for the
 power_supply

On Thu, Nov 18, 2010 at 11:08:39PM +0100, Lars-Peter Clausen wrote:
> This patch sets a default name for the power_supply in case there was no name
> supplied through the platform_data.
> 
> Signed-off-by: Lars-Peter Clausen <lars@...afoo.de>
> ---

Applied, thanks!

>  drivers/power/gpio-charger.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/power/gpio-charger.c b/drivers/power/gpio-charger.c
> index 016d5c0..27b8520 100644
> --- a/drivers/power/gpio-charger.c
> +++ b/drivers/power/gpio-charger.c
> @@ -94,7 +94,7 @@ static int __devinit gpio_charger_probe(struct platform_device *pdev)
>  
>  	charger = &gpio_charger->charger;
>  
> -	charger->name = pdata->name;
> +	charger->name = pdata->name ?: "gpio-charger";
>  	charger->type = pdata->type;
>  	charger->properties = gpio_charger_properties;
>  	charger->num_properties = ARRAY_SIZE(gpio_charger_properties);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ