Thread (9 messages) flat view 9 messages, 2 authors, 2021-03-16

Re: [PATCH 2/2] hwmon: (pmbus): Add driver for BluTek BPA-RS600

From: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Date: 2021-03-16 03:42:47
Also in: linux-hwmon, lkml

On 16/03/21 4:35 pm, Guenter Roeck wrote:
On 3/15/21 8:30 PM, Chris Packham wrote:
quoted
On 16/03/21 3:35 pm, Chris Packham wrote:
quoted
The BPA-RS600 is a compact 600W AC to DC removable power supply module.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

+static const struct of_device_id __maybe_unused bpa_rs600_of_match[] = {
+	{ .compatible = "blutek,bpa-rs600" },
+	{},
+};
I see this will fall foul of the name check in
__hwmon_device_register(). How should I name things to avoid this?
It isn't the binding. The driver name should not have a '-' in it.
You could just name it bpa_rs600 instead.
Sold.

I'll give the world a chance to turn so people can look at the rest of 
the patch before I send a v2.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help