hello, On Wed, Nov 20, 2024 at 11:49:48AM -0500, Trevor Gamblin wrote: > On 2024-10-24 06:43, Chi-Wen Weng wrote: > > +#include <linux/mod_devicetable.h> > > +#include <linux/module.h> > > +#include <linux/platform_device.h> > > +#include <linux/pwm.h> > > +#include <linux/io.h> > > +#include <linux/clk.h> > > +#include <linux/math64.h> > These should be organized alphabetically. > > + > > +/* The following are registers for PWM controller */ > > +#define REG_PWM_CTL0 (0x00) > > +#define REG_PWM_CNTEN (0x20) > > +#define REG_PWM_PERIOD0 (0x30) > > +#define REG_PWM_CMPDAT0 (0x50) > > +#define REG_PWM_WGCTL0 (0xB0) > > +#define REG_PWM_POLCTL (0xD4) > > +#define REG_PWM_POEN (0xD8) > > These too, I think - it will make it more readable for others. Keeping the registers in address order is the usual thing to do, so please keep the order of these. Otherwise I agree to Trevor's comments. Thanks for taking the time to look at this patch. Best regards Uwe
Attachment:
signature.asc
Description: PGP signature