Private
Public Access
2
0

pwm: equality comparison should be assignment

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-22 14:53:18 +01:00
parent ff720b67f5
commit 55403793e3

View File

@@ -147,7 +147,7 @@ maa_pwm_init_raw(int chipin, int pin)
maa_pwm_context dev = (maa_pwm_context) malloc(sizeof(struct _pwm));
if (dev == NULL)
return NULL;
dev->duty_fp == -1;
dev->duty_fp = -1;
dev->chipid = chipin;
dev->pin = pin;