Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (3 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/pwm/sysfs.c

    r25370 r31869  
    341341}
    342342
     343void pwmchip_sysfs_unexport_children(struct pwm_chip *chip)
     344{
     345        struct device *parent;
     346        unsigned int i;
     347
     348        parent = class_find_device(&pwm_class, NULL, chip,
     349                                   pwmchip_sysfs_match);
     350        if (!parent)
     351                return;
     352
     353        for (i = 0; i < chip->npwm; i++) {
     354                struct pwm_device *pwm = &chip->pwms[i];
     355
     356                if (test_bit(PWMF_EXPORTED, &pwm->flags))
     357                        pwm_unexport_child(parent, pwm);
     358        }
     359}
     360
    343361static int __init pwm_sysfs_init(void)
    344362{
Note: See TracChangeset for help on using the changeset viewer.