Added support for the polarity_mode attribute
Merge branch 'ev3dev-jessie' of github.com:ev3dev/ev3dev-kernel into ev3dev-jessie