> >+ u16 reg = sd_ctrl_read16(host, CTL_SD_MEM_CARD_OPT) > >+ & ~(CARD_OPT_WIDTH | CARD_OPT_WIDTH8); > >+ > >+ /* reg now applies to MMC_BUS_WIDTH_4 */ > >+ if (bus_width == MMC_BUS_WIDTH_1) > >+ reg |= CARD_OPT_WIDTH; > >+ else if (bus_width == MMC_BUS_WIDTH_8) > >+ reg |= CARD_OPT_WIDTH8; > > Why not *switch*? Didn't look better to me.
Attachment:
signature.asc
Description: PGP signature