Re: [PATCH v4 2/4] nvmem: eeprom: at25: add support for FRAM

Greg Kroah-Hartman
2021-05-20T05:53:21Z

On Thu, May 20, 2021 at 07:47:12AM +0200, Jiri Prchal wrote:
> +static int mypow(int x, int n)
> +{
> + int i;
> + int res = 1;
> +
> + for (i = 0; i < n; ++i)
> + res *= x;
> +
> + return res;
> +}

We really don't have a in-kernel function for this today?