realtek: Cleanup tab vs spaces for indentation

Sources files should used for the proper indentation:

* use tabs instead of 8 spaces
* spaces should never directly before a tab
* no whitespace characters at the end of a line

These rules were partially not followed in various source files.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20895
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Sven Eckelmann 2025-11-23 11:29:11 +01:00 committed by Hauke Mehrtens
parent 223cc6e1aa
commit 6e094232db
19 changed files with 191 additions and 191 deletions

View File

@ -256,10 +256,10 @@ static u32 rtl839x_l2_hash_key(struct rtl838x_switch_priv *priv, u64 seed)
u32 h1, h2, h; u32 h1, h2, h;
if (sw_r32(priv->r->l2_ctrl_0) & 1) { if (sw_r32(priv->r->l2_ctrl_0) & 1) {
h1 = (u32) (((seed >> 60) & 0x3f) ^ ((seed >> 54) & 0x3f) ^ h1 = (u32)(((seed >> 60) & 0x3f) ^ ((seed >> 54) & 0x3f) ^
((seed >> 36) & 0x3f) ^ ((seed >> 30) & 0x3f) ^ ((seed >> 36) & 0x3f) ^ ((seed >> 30) & 0x3f) ^
((seed >> 12) & 0x3f) ^ ((seed >> 6) & 0x3f)); ((seed >> 12) & 0x3f) ^ ((seed >> 6) & 0x3f));
h2 = (u32) (((seed >> 48) & 0x3f) ^ ((seed >> 42) & 0x3f) ^ h2 = (u32)(((seed >> 48) & 0x3f) ^ ((seed >> 42) & 0x3f) ^
((seed >> 24) & 0x3f) ^ ((seed >> 18) & 0x3f) ^ ((seed >> 24) & 0x3f) ^ ((seed >> 18) & 0x3f) ^
(seed & 0x3f)); (seed & 0x3f));
h = (h1 << 6) | h2; h = (h1 << 6) | h2;

View File

@ -455,7 +455,7 @@ static u32 rtl930x_l2_hash_key(struct rtl838x_switch_priv *priv, u64 seed)
{ {
u32 k0, k1, h1, h2, h; u32 k0, k1, h1, h2, h;
k0 = (u32) (((seed >> 55) & 0x1f) ^ k0 = (u32)(((seed >> 55) & 0x1f) ^
((seed >> 44) & 0x7ff) ^ ((seed >> 44) & 0x7ff) ^
((seed >> 33) & 0x7ff) ^ ((seed >> 33) & 0x7ff) ^
((seed >> 22) & 0x7ff) ^ ((seed >> 22) & 0x7ff) ^
@ -468,7 +468,7 @@ static u32 rtl930x_l2_hash_key(struct rtl838x_switch_priv *priv, u64 seed)
h2 = (seed >> 33) & 0x7ff; h2 = (seed >> 33) & 0x7ff;
h2 = ((h2 & 0x3f) << 5)| ((h2 >> 6) & 0x3f); h2 = ((h2 & 0x3f) << 5)| ((h2 >> 6) & 0x3f);
k1 = (u32) (((seed << 55) & 0x1f) ^ k1 = (u32)(((seed << 55) & 0x1f) ^
((seed >> 44) & 0x7ff) ^ ((seed >> 44) & 0x7ff) ^
h2 ^ h2 ^
((seed >> 22) & 0x7ff) ^ ((seed >> 22) & 0x7ff) ^