gpio_msm: using for_each_set_bit to simplify the code