regulator: max8952 - fix wrong gpio valid check