static long s3c64xx_pwm_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) { /* Begin Commented Out printk (PWM_DEVICE_NAME"\tML: s3c64xx_pwm_ioctl: cmd (%d)\n", cmd); printk (KERN_ERR"\tML: s3c64xx_pwm_ioctl: cmd (%d)\n", cmd); End Commented Out */ /* * Basic checking of the command */ if (_IOC_TYPE(cmd) != PWM_MAGIC) return -ENOTTY ; if (_IOC_NR(cmd) > PWM_MAXCMD) return -ENOTTY ; switch (cmd) { case PWM_IOCTL_SET_FREQ: if (arg == 0) return -EINVAL; PWM_Set_Freq(arg); break; case PWM_IOCTL_STOP: case PWM_RESET: default: PWM_Stop(); break; } return 0; }
static long s3c64xx_pwm_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) { switch (cmd) { case PWM_IOCTL_SET_FREQ: if (arg == 0) return -EINVAL; PWM_Set_Freq(arg); break; case PWM_IOCTL_STOP: default: PWM_Stop(); break; } return 0; }
static long s3c64xx_pwm_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) { printk("%s\n", __FUNCTION__); #if 0 switch (cmd) { case PWM_IOCTL_SET_FREQ: if (arg == 0) return -EINVAL; PWM_Set_Freq(arg); break; case PWM_IOCTL_STOP: default: PWM_Stop(); break; } #endif return 0; }