]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/extcon/extcon.c
extcon: Use BIT() macro for the left-shift operation
[mirror_ubuntu-artful-kernel.git] / drivers / extcon / extcon.c
index 6817e047cd40d5e64f88f105742a1192c55a6508..f422a78ba342428c6e4da7d4bb4a15ebfcf92ec9 100644 (file)
@@ -377,7 +377,7 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
        for (i = 0; i < edev->max_supported; i++) {
                count += sprintf(buf + count, "%s=%d\n",
                                extcon_info[edev->supported_cable[i]].name,
-                                !!(edev->state & (1 << i)));
+                                !!(edev->state & BIT(i)));
        }
 
        return count;