-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: sensor: st: replace i2/3c_burst_write
i2/3c_burst_write comes with a warning where this combined write synthesized by thsi API may not be supported by all I2/3C devices. Replace with i2c_write instead with a buffer combining the address and data. The Kconfig STMEMSC_I2C_WRITE_BUFFER_SIZE was added to set the size of the buffer pushed to the stack. Signed-off-by: Ryan McClelland <[email protected]>
- Loading branch information
1 parent
8f83ffc
commit 8f0ffbb
Showing
4 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ST MEMS sensor configuration options | ||
|
||
# Copyright (c) 2025 Meta Platforms | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config STMEMSC_I3C_I2C_WRITE_BUFFER_SIZE | ||
int "ST memsc I2C write buffer size" | ||
default 16 | ||
depends on I2C || I3C | ||
depends on HAS_STMEMSC | ||
help | ||
The size of the buffer pushed on the stack used to copy | ||
the data to be written along with the register address. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters