#include "ispreg.h"
 #include "ispcsiphy.h"
 
-static void csiphy_routing_cfg_3630(struct isp_csiphy *phy, u32 iface,
+static void csiphy_routing_cfg_3630(struct isp_csiphy *phy,
+                                   enum isp_interface_type iface,
                                    bool ccp2_strobe)
 {
        u32 reg = isp_reg_readl(
        u32 shift, mode;
 
        switch (iface) {
+       default:
+       /* Should not happen in practice, but let's keep the compiler happy. */
        case ISP_INTERFACE_CCP2B_PHY1:
                reg &= ~OMAP3630_CONTROL_CAMERA_PHY_CTRL_CSI1_RX_SEL_PHY2;
                shift = OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_PHY1_SHIFT;
        }
 
        /* Select data/clock or data/strobe mode for CCP2 */
-       switch (iface) {
-       case ISP_INTERFACE_CCP2B_PHY1:
-       case ISP_INTERFACE_CCP2B_PHY2:
+       if (iface == ISP_INTERFACE_CCP2B_PHY1 ||
+           iface == ISP_INTERFACE_CCP2B_PHY2) {
                if (ccp2_strobe)
                        mode = OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE;
                else
  * and 3630, so they will not hold their contents in off-mode. This isn't an
  * issue since the MPU power domain is forced on whilst the ISP is in use.
  */
-static void csiphy_routing_cfg(struct isp_csiphy *phy, u32 iface, bool on,
+static void csiphy_routing_cfg(struct isp_csiphy *phy,
+                              enum isp_interface_type iface, bool on,
                               bool ccp2_strobe)
 {
        if (phy->isp->mmio_base[OMAP3_ISP_IOMEM_3630_CONTROL_CAMERA_PHY_CTRL]