public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/76] staging: ks7010: Use the ARRAY_SIZE() macro to calculate array sizes.
@ 2018-03-30  7:07 Quytelda Kahja
  2018-03-30  7:07 ` [PATCH 02/76] staging: ks7010: Remove trailing _t from 'struct wpa_suite_t' Quytelda Kahja
                   ` (77 more replies)
  0 siblings, 78 replies; 81+ messages in thread
From: Quytelda Kahja @ 2018-03-30  7:07 UTC (permalink / raw)
  To: gregkh, wsa; +Cc: devel, driverdev-devel, linux-kernel, Quytelda Kahja

This macro, provided in 'linux/kernel.h', will calculate the size
more succinctly than a division operation.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
---
 drivers/staging/ks7010/ks_wlan_net.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c
index 9078e13b0d4a..533feef604a9 100644
--- a/drivers/staging/ks7010/ks_wlan_net.c
+++ b/drivers/staging/ks7010/ks_wlan_net.c
@@ -2702,10 +2702,9 @@ static const iw_handler ks_wlan_private_handler[] = {
 };
 
 static const struct iw_handler_def ks_wlan_handler_def = {
-	.num_standard = sizeof(ks_wlan_handler) / sizeof(iw_handler),
-	.num_private = sizeof(ks_wlan_private_handler) / sizeof(iw_handler),
-	.num_private_args =
-	    sizeof(ks_wlan_private_args) / sizeof(struct iw_priv_args),
+	.num_standard = ARRAY_SIZE(ks_wlan_handler),
+	.num_private = ARRAY_SIZE(ks_wlan_private_handler),
+	.num_private_args = ARRAY_SIZE(ks_wlan_private_args),
 	.standard = (iw_handler *)ks_wlan_handler,
 	.private = (iw_handler *)ks_wlan_private_handler,
 	.private_args = (struct iw_priv_args *)ks_wlan_private_args,
-- 
2.16.3

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 81+ messages in thread

end of thread, other threads:[~2018-03-30 10:00 UTC | newest]

Thread overview: 81+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-30  7:07 [PATCH 01/76] staging: ks7010: Use the ARRAY_SIZE() macro to calculate array sizes Quytelda Kahja
2018-03-30  7:07 ` [PATCH 02/76] staging: ks7010: Remove trailing _t from 'struct wpa_suite_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 03/76] staging: ks7010: Remove trailing _t from 'struct rsn_mode_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 04/76] staging: ks7010: Remove trailing _t from 'struct pmk_cache_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 05/76] staging: ks7010: Remove trailing _t from 'struct hostif_data_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 06/76] staging: ks7010: Remove trailing _t from 'struct hostif_data_indication_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 07/76] staging: ks7010: Remove trailing _t from 'struct channel_list_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 08/76] staging: ks7010: Remove trailing _t from 'struct hostif_mib_get_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 09/76] staging: ks7010: Remove trailing _t from 'struct hostif_mib_value_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 10/76] staging: ks7010: Remove trailing _t from 'struct hostif_mib_get_confirm_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 11/76] staging: ks7010: Remove trailing _t from 'struct hostif_mib_set_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 12/76] staging: ks7010: Remove trailing _t from 'struct hostif_mib_set_confirm_t' Quytelda Kahja
2018-03-30  7:44   ` Joe Perches
2018-03-30 10:00   ` Greg KH
2018-03-30  7:07 ` [PATCH 13/76] staging: ks7010: Remove trailing _t from 'struct hostif_power_mgmt_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 14/76] staging: ks7010: Remove trailing _t from 'struct hostif_power_mgmt_confirm_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 15/76] staging: ks7010: Remove trailing _t from 'struct hostif_start_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 16/76] staging: ks7010: Remove trailing _t from 'struct hostif_start_confirm_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 17/76] staging: ks7010: Remove trailing _t from 'struct ssid_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 18/76] staging: ks7010: Remove trailing _t from 'struct rate_set8_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 19/76] staging: ks7010: Remove trailing _t from 'struct fh_parms_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 20/76] staging: ks7010: Remove trailing _t from 'struct ds_parms_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 21/76] staging: ks7010: Remove trailing _t from 'struct cf_parms_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 22/76] staging: ks7010: Remove trailing _t from 'struct ibss_parms_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 23/76] staging: ks7010: Remove trailing _t from 'struct rsn_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 24/76] staging: ks7010: Remove trailing _t from 'struct erp_params_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 25/76] staging: ks7010: Remove trailing _t from 'struct rate_set16_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 26/76] staging: ks7010: Remove trailing _t from 'struct ap_info_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 27/76] staging: ks7010: Remove trailing _t from 'struct link_ap_info_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 28/76] staging: ks7010: Remove trailing _t from 'struct hostif_connect_indication_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 29/76] staging: ks7010: Remove trailing _t from 'struct hostif_stop_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 30/76] staging: ks7010: Remove trailing _t from 'struct hostif_stop_confirm_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 31/76] staging: ks7010: Remove trailing _t from 'struct hostif_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 32/76] staging: ks7010: Remove trailing _t from 'struct hostif_ps_adhoc_set_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 33/76] staging: ks7010: Remove trailing _t from 'struct hostif_ps_adhoc_set_confirm_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 34/76] staging: ks7010: Remove trailing _t from 'struct hostif_infrastructure_set_request_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 35/76] staging: ks7010: Remove trailing _t from 'struct hostif_infrastructure_set_confirm_t' Quytelda Kahja
2018-03-30  7:07 ` [PATCH 36/76] staging: ks7010: Remove trailing _t from 'struct hostif_adhoc_set_request_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 37/76] staging: ks7010: Remove trailing _t from 'struct hostif_adhoc_set2_request_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 38/76] staging: ks7010: Remove trailing _t from 'struct hostif_adhoc_set_confirm_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 39/76] staging: ks7010: Remove trailing _t from 'struct last_associate_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 40/76] staging: ks7010: Remove trailing _t from 'struct association_request_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 41/76] staging: ks7010: Remove trailing _t from 'struct association_response_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 42/76] staging: ks7010: Remove trailing _t from 'struct hostif_associate_indication_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 43/76] staging: ks7010: Remove trailing _t from 'struct hostif_bss_scan_request_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 44/76] staging: ks7010: Remove trailing _t from 'struct hostif_bss_scan_confirm_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 45/76] staging: ks7010: Remove trailing _t from 'struct hostif_phy_information_request_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 46/76] staging: ks7010: Remove trailing _t from 'struct hostif_phy_information_confirm_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 47/76] staging: ks7010: Remove trailing _t from 'struct hostif_sleep_request_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 48/76] staging: ks7010: Remove trailing _t from 'struct hostif_sleep_confirm_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 49/76] staging: ks7010: Remove trailing _t from 'struct hostif_mic_failure_request_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 50/76] staging: ks7010: Remove trailing _t from 'struct hostif_mic_failure_confirm_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 51/76] staging: ks7010: Remove trailing _t from 'struct hostt_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 52/76] staging: ks7010: Remove trailing _t from 'struct rsn_ie_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 53/76] staging: ks7010: Remove trailing _t from 'struct wps_ie_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 54/76] staging: ks7010: Remove trailing _t from 'struct local_ap_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 55/76] staging: ks7010: Remove trailing _t from 'struct local_aplist_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 56/76] staging: ks7010: Remove trailing _t from 'struct local_gain_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 57/76] staging: ks7010: Remove trailing _t from 'struct local_eeprom_sum_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 58/76] staging: ks7010: Remove trailing _t from 'struct power_save_status_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 59/76] staging: ks7010: Remove trailing _t from 'struct sleep_status_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 60/76] staging: ks7010: Remove trailing _t from 'struct scan_ext_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 61/76] staging: ks7010: Remove trailing _t from 'struct wpa_key_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 62/76] staging: ks7010: Remove trailing _t from 'struct mic_failure_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 63/76] staging: ks7010: Remove trailing _t from 'struct wpa_status_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 64/76] staging: ks7010: Remove trailing _t from 'struct pmk_list_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 65/76] staging: ks7010: Remove trailing _t from 'struct pmk_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 66/76] staging: ks7010: Remove trailing _t from 'struct wps_status_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 67/76] staging: ks7010: Remove trailing _t from 'struct michael_mic_t' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 68/76] staging: ks7010: Replace manual array copy with ether_addr_copy() Quytelda Kahja
2018-03-30  7:08 ` [PATCH 69/76] staging: ks7010: Remove 'eth_addr' field from 'struct ks_wlan_private' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 70/76] staging: ks7010: Remove extra blank line between functions Quytelda Kahja
2018-03-30  7:08 ` [PATCH 70/72] staging: ks7010: Rename ks_wlan_set_multicast_list() Quytelda Kahja
2018-03-30  7:08 ` [PATCH 71/72] staging: ks7010: Remove 'eth_addr' field from 'struct ks_wlan_private' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 71/76] staging: ks7010: Rename ks_wlan_set_multicast_list() Quytelda Kahja
2018-03-30  7:08 ` [PATCH 72/76] staging: ks7010: Remove dummy address set Quytelda Kahja
2018-03-30  7:08 ` [PATCH 72/72] staging: ks7010: Remove extra blank line between functions Quytelda Kahja
2018-03-30  7:08 ` [PATCH 73/76] staging: ks7010: Change 'device_open_status' to a bool Quytelda Kahja
2018-03-30  7:08 ` [PATCH 74/76] staging: ks7010: Remove unnecessary casts in 'struct ks_wlan_handler_def' Quytelda Kahja
2018-03-30  7:08 ` [PATCH 75/76] staging: ks7010: Replace memcmp() with ether_addr_equal() Quytelda Kahja
2018-03-30  7:08 ` [PATCH 76/76] staging: ks7010: Replace memcpy() with ether_addr_copy() Quytelda Kahja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox