[nrf fromlist] drivers: i2s: nrfx_i2s: introduce prescaler calculation #12454
Annotations
2 errors, 2 warnings, and 1 notice
check-warns
Process completed with exit code 1.
|
check-warns:
Checkpatch.txt#L0
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#coding-style for more details.
BLOCK_COMMENT_STYLE: Block comments should align the * on each line
File:drivers/i2s/i2s_nrfx.c
Line:71
|
check-warns:
ClangFormat.txt#L0
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- /* The I2S_NRFX_DEVICE() macro contains build assertions that
- * make sure that the ACLK clock source is only used when it is
- * available and only with the "hfclkaudio-frequency" property
- * defined, but the default value of 0 here needs to be used to
- * prevent compilation errors when the property is not defined
- * (this expression will be eventually optimized away then).
- */
- ? DT_PROP_OR(DT_NODELABEL(clock), hfclkaudio_frequency, 0)
- : 32*1000*1000UL,
+ /* The I2S_NRFX_DEVICE() macro contains build assertions that
+ * make sure that the ACLK clock source is only used when it is
+ * available and only with the "hfclkaudio-frequency" property
+ * defined, but the default value of 0 here needs to be used to
+ * prevent compilation errors when the property is not defined
+ * (this expression will be eventually optimized away then).
+ */
+ ? DT_PROP_OR(DT_NODELABEL(clock), hfclkaudio_frequency, 0)
+ : 32 * 1000 * 1000UL,
File:drivers/i2s/i2s_nrfx.c
Line:79
|
Run Compliance Tests:
drivers/i2s/i2s_nrfx.c#L71
drivers/i2s/i2s_nrfx.c:71 Block comments should align the * on each line
|
Run Compliance Tests:
drivers/i2s/i2s_nrfx.c#L79
drivers/i2s/i2s_nrfx.c:79
- /* The I2S_NRFX_DEVICE() macro contains build assertions that
- * make sure that the ACLK clock source is only used when it is
- * available and only with the "hfclkaudio-frequency" property
- * defined, but the default value of 0 here needs to be used to
- * prevent compilation errors when the property is not defined
- * (this expression will be eventually optimized away then).
- */
- ? DT_PROP_OR(DT_NODELABEL(clock), hfclkaudio_frequency, 0)
- : 32*1000*1000UL,
+ /* The I2S_NRFX_DEVICE() macro contains build assertions that
+ * make sure that the ACLK clock source is only used when it is
+ * available and only with the "hfclkaudio-frequency" property
+ * defined, but the default value of 0 here needs to be used to
+ * prevent compilation errors when the property is not defined
+ * (this expression will be eventually optimized away then).
+ */
+ ? DT_PROP_OR(DT_NODELABEL(clock), hfclkaudio_frequency, 0)
+ : 32 * 1000 * 1000UL,
|
Loading