SAMSUNG_PWM_NUM
s3c64xx_pwm_variant.output_mask = BIT(SAMSUNG_PWM_NUM) - 1;
unsigned int timer_irqs[SAMSUNG_PWM_NUM] = {
mask = ~pwm.variant.output_mask & ((1 << SAMSUNG_PWM_NUM) - 1);
memcpy(pwm.irq, irqs, SAMSUNG_PWM_NUM * sizeof(*irqs));
for (i = 0; i < SAMSUNG_PWM_NUM; ++i)
if (val >= SAMSUNG_PWM_NUM) {
unsigned int irq[SAMSUNG_PWM_NUM];
if (val >= SAMSUNG_PWM_NUM) {
chip = devm_pwmchip_alloc(&pdev->dev, SAMSUNG_PWM_NUM, sizeof(*our_chip));
our_chip->inverter_mask = BIT(SAMSUNG_PWM_NUM) - 1;
for (chan = 0; chan < SAMSUNG_PWM_NUM; ++chan)
for (i = 0; i < SAMSUNG_PWM_NUM; i++) {
struct samsung_pwm_channel channel[SAMSUNG_PWM_NUM];