Fixing double const in of_switch.c