could write this a bit more simply
````
return (device_pin < PIOS_PCF8591_NUMBER_OF_ADC_CHANNELS);
````