mac802154: ops: declare channel and page as u8
The range of channel and page fits into an unsigned byte range. This patch changes the set_channel parameter definitions for channel and page to u8. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Cc: Alan Ott <alan@signal11.us> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
1630186100
commit
e37d2ec82a
@@ -55,7 +55,7 @@ fakelb_hw_ed(struct ieee802154_hw *hw, u8 *level)
|
||||
}
|
||||
|
||||
static int
|
||||
fakelb_hw_channel(struct ieee802154_hw *hw, int page, int channel)
|
||||
fakelb_hw_channel(struct ieee802154_hw *hw, u8 page, u8 channel)
|
||||
{
|
||||
pr_debug("set channel to %d\n", channel);
|
||||
|
||||
|
Reference in New Issue
Block a user