Lines Matching defs:channel
38 * @attr: The holders for the channel attributes.
49 * s3c_hwmon_read_ch - read a value from a given adc channel.
52 * @channel: The channel we're reading from.
54 * Read a value from the @channel with the proper locking and sleep until
59 struct s3c_hwmon *hwmon, int channel)
67 dev_dbg(dev, "reading channel %d\n", channel);
69 ret = s3c_adc_read(hwmon->client, channel);
77 * s3c_hwmon_show_raw - show a conversion from the raw channel number.
83 * ADC channel. This does a conversion and returns the raw (un-scaled)
141 * s3c_hwmon_ch_show - show value of a given channel
147 * caller. The scale factor is gained from the channel configuration
173 * s3c_hwmon_label_show - show label name of the given channel.
178 * Return the label name of a given channel
194 * s3c_hwmon_create_attr - create hwmon attribute for given channel.
196 * @cfg: The channel configuration passed from the platform data.
197 * @channel: The ADC channel number to process.
204 * otherwise the name is taken by concatenating in_ with the channel
210 int channel)
215 snprintf(attrs->in_name, sizeof(attrs->in_name), "in%d_input", channel);
218 attr->index = channel;
233 "in%d_label", channel);
236 attr->index = channel;
314 "channel %d multiplier too large\n",
318 dev_err(&dev->dev, "channel %d divider zero\n", i);
326 "error creating channel %d\n", i);