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

From: Greg Kroah-Hartman
Date: Thu May 20 2021 - 01:53:24 EST


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?