[PATCH 3.16.y-ckt 081/185] regmap: Fix possible shift overflow in regmap_field_init()

2015-07-15 Thread Luis Henriques
3.16.7-ckt15 -stable review patch. If anyone has any objections, please let me know. -- From: Maxime Coquelin commit 921cc29473a0d7c109105c1876ddb432f4a4be7d upstream. The way the mask is generated in regmap_field_init() is wrong. Indeed, a field initialized with msb = 31

[PATCH 3.16.y-ckt 081/185] regmap: Fix possible shift overflow in regmap_field_init()

2015-07-15 Thread Luis Henriques
3.16.7-ckt15 -stable review patch. If anyone has any objections, please let me know. -- From: Maxime Coquelin maxime.coque...@st.com commit 921cc29473a0d7c109105c1876ddb432f4a4be7d upstream. The way the mask is generated in regmap_field_init() is wrong. Indeed, a field