void omap_uwire_attach(struct omap_uwire_s *s,

                uWireSlave *slave, int chipselect)

{

    if (chipselect < 0 || chipselect > 3) {

        fprintf(stderr, "%s: Bad chipselect %i\n", __FUNCTION__, chipselect);

        exit(-1);

    }



    s->chip[chipselect] = slave;

}

void omap_uwire_attach(struct omap_uwire_s *s,

                uWireSlave *slave, int chipselect)

{

    if (chipselect < 0 || chipselect > 3) {

        fprintf(stderr, "%s: Bad chipselect %i\n", __FUNCTION__, chipselect);

        exit(-1);

    }



    s->chip[chipselect] = slave;

}

void FUNC_0(struct omap_uwire_s *VAR_0,

                uWireSlave *VAR_1, int VAR_2)

{

    if (VAR_2 < 0 || VAR_2 > 3) {

        fprintf(stderr, "%VAR_0: Bad VAR_2 %i\n", __FUNCTION__, VAR_2);

        exit(-1);

    }



    VAR_0->chip[VAR_2] = VAR_1;

}

void FUNC_0(struct omap_uwire_s *VAR_0,
uWireSlave *VAR_1, int VAR_2)
{ if (VAR_2 < 0 || VAR_2 > 3) { fprintf(stderr, "%VAR_0: Bad VAR_2 %i\n", __FUNCTION__, VAR_2); exit(-1); } VAR_0->chip[VAR_2] = VAR_1; }