examples/pca9635/pca9635_main.c: The brightness struct name was changed
in the OS driver, thus this example needs to follow suit.
diff --git a/examples/pca9635/pca9635_main.c b/examples/pca9635/pca9635_main.c
index 0746e05..833807b 100644
--- a/examples/pca9635/pca9635_main.c
+++ b/examples/pca9635/pca9635_main.c
@@ -68,7 +68,7 @@
int main(int argc, FAR char *argv[])
{
- struct pca9635pw_setled_brightness_arg_s ledbright;
+ struct pca9635pw_brightness_s ledbright;
int led;
int bright;
int fd;
@@ -91,10 +91,12 @@
ledbright.led = led;
ledbright.brightness = bright;
- ret = ioctl(fd, PWMIOC_SETLED_BRIGHTNESS, (unsigned long)&ledbright);
+ ret = ioctl(fd, PWMIOC_SETLED_BRIGHTNESS,
+ (unsigned long)&ledbright);
if (ret < 0)
{
- _err("ERROR: ioctl(PWMIOC_SETLED_BRIGHTNESS) failed: %d\n", errno);
+ _err("ERROR: ioctl(PWMIOC_SETLED_BRIGHTNESS) failed: %d\n",
+ errno);
}
}