Re: [PATCH v5] iio: sx9324: avoid copying property strings

2024-02-04 Thread Jonathan Cameron
On Fri, 2 Feb 2024 15:38:03 -0600 Stephen Boyd wrote: > Quoting Justin Stitt (2024-02-01 10:55:03) > > We're doing some needless string copies when trying to assign the proper > > `prop` string. We can make `prop` a const char* and simply assign to > > string literals. > > > > For the case where

Re: [PATCH v5] iio: sx9324: avoid copying property strings

2024-02-02 Thread Stephen Boyd
Quoting Justin Stitt (2024-02-01 10:55:03) > We're doing some needless string copies when trying to assign the proper > `prop` string. We can make `prop` a const char* and simply assign to > string literals. > > For the case where a format string is used, let's extract the parsing > logic out into