Re: [PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-17 Thread Thierry Reding
On Wed, Oct 16, 2019 at 11:02:47PM -0700, Guru Das Srinagesh wrote: > On Wed, Oct 16, 2019 at 12:15:39PM +0200, Thierry Reding wrote: > > On Tue, Oct 15, 2019 at 07:11:39PM -0700, Guru Das Srinagesh wrote: > > > Because period and duty cycle are defined as ints with units of > > > nanoseconds, the

Re: [PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-16 Thread Guru Das Srinagesh
On Wed, Oct 16, 2019 at 12:15:39PM +0200, Thierry Reding wrote: > On Tue, Oct 15, 2019 at 07:11:39PM -0700, Guru Das Srinagesh wrote: > > Because period and duty cycle are defined as ints with units of > > nanoseconds, the maximum time duration that can be set is limited to > > ~2.147 seconds. Chan

Re: [PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-16 Thread Thierry Reding
On Tue, Oct 15, 2019 at 07:11:39PM -0700, Guru Das Srinagesh wrote: > Because period and duty cycle are defined as ints with units of > nanoseconds, the maximum time duration that can be set is limited to > ~2.147 seconds. Change their definitions to u64 so that higher durations > may be set. > >

Re: [PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-16 Thread Thierry Reding
On Tue, Oct 15, 2019 at 07:11:39PM -0700, Guru Das Srinagesh wrote: > Because period and duty cycle are defined as ints with units of > nanoseconds, the maximum time duration that can be set is limited to > ~2.147 seconds. Change their definitions to u64 so that higher durations > may be set. > >

Re: [PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-15 Thread Uwe Kleine-König
On Tue, Oct 15, 2019 at 07:11:39PM -0700, Guru Das Srinagesh wrote: > Because period and duty cycle are defined as ints with units of > nanoseconds, the maximum time duration that can be set is limited to > ~2.147 seconds. Change their definitions to u64 so that higher durations > may be set. > >

[PATCH 1/1] pwm: Convert period and duty cycle to u64

2019-10-15 Thread Guru Das Srinagesh
Because period and duty cycle are defined as ints with units of nanoseconds, the maximum time duration that can be set is limited to ~2.147 seconds. Change their definitions to u64 so that higher durations may be set. Signed-off-by: Guru Das Srinagesh --- drivers/pwm/core.c | 4 ++-- drivers/p