/* /sys/devices/platform/ep93xx-pwm.N /min_freq read-only minimum pwm output frequency /max_req read-only maximum pwm output frequency /freq read-write pwm output frequency (0 = disable output) /duty_percent read-write pwm duty cycle percent (1..99) /invert read-write invert pwm output  */
static ssize_t ep93xx_pwm_get_min_freq(struct device *dev, struct device_attribute *attr, char *buf)
/* /sys/devices/platform/ep93xx-pwm.N /min_freq read-only minimum pwm output frequency /max_req read-only maximum pwm output frequency /freq read-write pwm output frequency (0 = disable output) /duty_percent read-write pwm duty cycle percent (1..99) /invert read-write invert pwm output  */
static ssize_t ep93xx_pwm_get_min_freq(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct platform_device *pdev = to_platform_device(dev);
	struct ep93xx_pwm *pwm = platform_get_drvdata(pdev);
	unsigned long rate = clk_get_rate(pwm->clk);
	return sprintf(buf, "%ld\n", rate / (EP93XX_PWM_MAX_COUNT + 1));
}