Re: [PATCH v5] iio: potentiometer: add driver for Microchip MCP413X/414X/415X/416X/423X/424X/425X/426X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29.03.2016 09:51, Slawomir Stepien wrote:
On Mar 28, 2016 15:58, Jonathan Cameron wrote:
On 23/03/16 08:57, Slawomir Stepien wrote:
> The following functionalities are supported:
>  - write, read from volatile memory
>
> Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf
>
> Signed-off-by: Slawomir Stepien <sst@xxxxxxxxx>
One process comment below... And git actually copes fine with what you
did (I wondered which way it would go until I tried it :)

I did try it on my tree with git and it works so I decided to do it like that.
I'll drop the additional --- next time.

Applied to the togreg branch of iio.git - initially pushed out as
testing for the autobuilders to play pingpong with it.

A very nice, clean driver.  Thanks for your hard work on this.

Note it is in a branch I happy to rebase for the next week, so if Joachim in particular would like to add a reviewed by tag, I'd be delighted to append
it.  Often reviewers don't get enough credit in my opinion!

Thank you all for the support and really good comments on this patch. I've
learned a lot!

You are most welcome.
> ---
> Changes since v4:
> - Added necessary include files and sorted all includes
> - Added missing mutex unlock when there is CMDERR
> - mcp4131_write_raw spi_write/mutex_unlock/return refactor
>
> Changes since v3:
> - Added 'potentiometer' to subject
> - Replaced mcp4131_exec with spi_write and mcp4131_read
> - Narrowed mutex locking and unlocking places
>
> Changes since v2:
> - Removed unnecessary parentheses in MCP4131_WIPER_SHIFT macro
> - Replaced the rx and tx SPI buffers with one buf that is ____cacheline_aligned
> - Changed mutex locking position
> - Replaced the devid with pointer to model configuration
> - Removed positive ("Registered" & "Unregistered") dev_info prints
> - Removed the mcp4131_remove callback
>
> Changes since v1:
> - One line summary changed
> - Fixed module name and OF compatible
> - Based code on Peter Rosin's code from mcp4531.c
> - No additional sysfs attributes
> - Deleted not used devid struct memeber
> - Changed mcp4131_exec function arguments:
>  - write value is now u16
>  - no need to pass return buffer array - rx array from mcp4131_data is used
> - Added missing new line characters to dev_info
Funnily enough, this is the only thing I can find wrong in this patch.
Should not introduce an additional --- as you have done here.
The version stuff should simply have a blank line between it and the stats ;)

How about the MAINTAINER file? I wasn't sure if I should add myself as the M of
this driver...
You are more than welcome to add an entry. We don't normally fuss too much either way about individual drivers (as assumption is the author will get any relevant patches anyway).

So kind of a personal decision,

Jonathan
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux