From: Pavel Machek <pavel@ucw.cz>
To: Naresh Solanki <naresh.solanki@9elements.com>
Cc: linux-kernel@vger.kernel.org,
Patrick Rudolph <patrick.rudolph@9elements.com>
Subject: Re: [PATCH 5/5] leds: max597x: Add support for max597x
Date: Sun, 17 Jul 2022 14:43:19 +0200 [thread overview]
Message-ID: <20220717124319.GK14285@duo.ucw.cz> (raw)
In-Reply-To: <20220705122244.472894-6-Naresh.Solanki@9elements.com>
[-- Attachment #1: Type: text/plain, Size: 1816 bytes --]
Hi!
> diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
> index a49979f41eee..682748097276 100644
> --- a/drivers/leds/Kconfig
> +++ b/drivers/leds/Kconfig
> @@ -598,6 +598,16 @@ config LEDS_ADP5520
> To compile this driver as a module, choose M here: the module will
> be called leds-adp5520.
>
> +config LEDS_MAX597X
> + tristate "Maxim 597x leds"
> + depends on I2C
> + depends on OF
> + depends on LEDS_CLASS
> + select MFD_MAX597X
> + help
> + This driver controls a Maxim 5970/5978 indication led via I2C bus.
> + The MAX5970/5978 is a smart switch with 4 indication leds
led->LED.
Add "to compile this driver as a module, choose M here: the module will
be called ..".
Add "." at end of sentence.
> +++ b/drivers/leds/leds-max597x.c
> @@ -0,0 +1,130 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Device driver for regulators in MAX5970 and MAX5978 IC
?
> +static int max597x_led_set_brightness(struct led_classdev *cdev,
> + enum led_brightness brightness)
> +{
> + struct max597x_led *led = cdev->driver_data;
> + int ret;
> +
> + if (!led || !led->regmap)
> + return -1;
-ERRNO.
> +static int max597x_led_probe(struct platform_device *pdev)
> +{
> +
> +
> + struct max597x_data *max597x = dev_get_drvdata(pdev->dev.parent);
> + struct device_node *np = dev_of_node(pdev->dev.parent);
Delete empty lines.
> + struct device_node *led_node;
> + struct device_node *child;
> + int ret = 0;
> +
> +
One empty line would be enough.
> +module_platform_driver(max597x_led_driver);
> +
> +
> +MODULE_AUTHOR("Patrick Rudolph <patrick.rudolph@9elements.com>");
One empty line would be enough.
Best regards,
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2022-07-17 12:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-05 12:22 [PATCH 1/5] dt-bindings: mfd: Add bindings for MAX5970 and MAX5978 Naresh Solanki
2022-07-05 12:22 ` [PATCH 2/5] mfd: max597x: Add support " Naresh Solanki
2022-07-05 12:22 ` [PATCH 3/5] regulator: max597x: Add support for max597x regulator Naresh Solanki
2022-07-12 7:30 ` Matti Vaittinen
2022-07-19 15:59 ` Naresh Solanki
2022-07-19 17:04 ` Mark Brown
2022-07-05 12:22 ` [PATCH 4/5] iio: max597x: Add support for max597x Naresh Solanki
2022-07-05 12:22 ` [PATCH 5/5] leds: " Naresh Solanki
2022-07-17 12:43 ` Pavel Machek [this message]
2022-07-06 10:17 ` (subset) [PATCH 1/5] dt-bindings: mfd: Add bindings for MAX5970 and MAX5978 Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220717124319.GK14285@duo.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=naresh.solanki@9elements.com \
--cc=patrick.rudolph@9elements.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®