On Wed, Sep 4, 2024 at 5:36 AM Hongbo Li wrote:
> On 2024/8/29 19:24, Hongbo Li wrote:
...
> I found that there are still a few function rules that are not complete,
> such as str_on_off, str_enable_disable, str_yes_no. How about adding
> these rules as well?
Why not?
--
With Best Regards,
An
On 2024/9/4 15:37, Andy Shevchenko wrote:
On Wed, Sep 4, 2024 at 5:36 AM Hongbo Li wrote:
On 2024/8/29 19:24, Hongbo Li wrote:
...
I found that there are still a few function rules that are not complete,
such as str_on_off, str_enable_disable, str_yes_no. How about adding
these rules as
As other rules done, we add rules for str_lo{w}_hi{gh}()
to check the relative opportunities.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 46 +
1 file changed, 46 insertions(+)
diff --git a/scripts/coccinelle/api/string_choices.cocci
b/scripts
We found that many of the detection rules for helpers in
string_choices.h are missing. This series of patches is
intended to complete these rules. We have verified in the
latest kernel tree that these rules can detect many places
where the string choices helper can be used as a replacement.
Here a
As done with str_true_false(), add checks for str_false_true()
opportunities. A simple test can find over 9 cases currently
exist in the tree.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 23 +
1 file changed, 23 insertions(+)
diff --git a/scrip
As other rules done, we add rules for str_write_read()
to check the relative opportunities.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 23 +
1 file changed, 23 insertions(+)
diff --git a/scripts/coccinelle/api/string_choices.cocci
b/scripts/c
As other rules done, we add rules for str_yes_no()
to check the relative opportunities.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 23 +
1 file changed, 23 insertions(+)
diff --git a/scripts/coccinelle/api/string_choices.cocci
b/scripts/cocci
As other rules done, we add rules for str_on_off()
to check the relative opportunities.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 23 +
1 file changed, 23 insertions(+)
diff --git a/scripts/coccinelle/api/string_choices.cocci
b/scripts/cocci
As other rules done, we add rules for str_hi{gh}_lo{w}()
to check the relative opportunities.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 46 +
1 file changed, 46 insertions(+)
diff --git a/scripts/coccinelle/api/string_choices.cocci
b/scripts
After str_true_false() has been introduced in the tree,
we can add rules for finding places where str_true_false()
can be used. A simple test can find over 10 locations.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 23 +
1 file changed, 23 insert
As other rules done, we add rules for str_read_write()
to check the relative opportunities.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 23 +
1 file changed, 23 insertions(+)
diff --git a/scripts/coccinelle/api/string_choices.cocci
b/scripts/c
As other rules done, we add rules for str_enable{d}_
disable{d}() to check the relative opportunities.
Signed-off-by: Hongbo Li
---
scripts/coccinelle/api/string_choices.cocci | 46 +
1 file changed, 46 insertions(+)
diff --git a/scripts/coccinelle/api/string_choices.cocci
From: shuaijie wang
Add drivers that support Awinic aw96103/aw96105 proximity sensors.
The aw9610x series are high-sensitivity capacitive proximity detection
sensors. This device detects human proximity and assists electronic devices
in reducing specific absorption rate (SAR) to pass SAR related
From: shuaijie wang
Add device tree bindings for aw96103/aw96105 proximity sensor.
Reviewed-by: Krzysztof Kozlowski
Signed-off-by: shuaijie wang
---
.../iio/proximity/awinic,aw96103.yaml | 61 +++
1 file changed, 61 insertions(+)
create mode 100644
Documentation/devi
From: shuaijie wang
AW96103 is a low power consumption capacitive touch and proximity controller.
Each channel can be independently config as sensor input, shield output.
Channel Information:
aw96103: 3-channel
aw96105: 5-channel
Signed-off-by: shuaijie wang
---
drivers/iio/proximity/Kcon
On Wed, 4 Sep 2024 10:27:18 +0800 Hongbo Li wrote:
> However, with these modifications, I'm not sure whether Willem and Jakub
> agree with the changes. If they don't agree, then I'll have to remove
> this example in the next version.
This and, to be clear, patch 4 as well.
> In the future, we c
Hi Hongbo,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20240903]
url:
https://github.com/intel-lab-lkp/linux/commits/Hongbo-Li/mmc-sdhci-cadence-Annotate-struct-sdhci_cdns_phy_param-with-__counted_by/20240904-094207
base: next-20240903
patch link
[..]
- struct sdhci_cdns_phy_param phy_params[];
+ struct sdhci_cdns_phy_param phy_params[] __counted_by(count);
It seems there is no such `count` member in the structure[1].
Since `counted_by` hasn't been released in GCC yet. Please, make
sure to build-test any `counted_by` patch
On 2024/9/5 8:16, Gustavo A. R. Silva wrote:
[..]
- struct sdhci_cdns_phy_param phy_params[];
+ struct sdhci_cdns_phy_param phy_params[] __counted_by(count);
It seems there is no such `count` member in the structure[1].
Since `counted_by` hasn't been released in GCC yet. Please, mak
19 matches
Mail list logo