On 02/12/2012 09:49 AM, Laxman Dewangan wrote:
> [...]
> +     } else {
> +             for (i = 0; i < val_count; i++) {
> +                     memcpy(&ival, val + (i * val_bytes), val_bytes);

This will have endianess issues. You'll need something like regcache_get_val.

> +                     ret = _regmap_write(map, reg + i, ival);
> +                     if (ret) {
> +                             dev_err(map->dev,
> +                                 "Error in register %u write, ret %d\n",
> +                                             reg + i, ret);
> +                             break;
> +                     }
> +             }
> +     }
> [...]
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to