> It is possible that ID without driver_data will be passed to the driver, > e.g. `new_id` is used to dynamically create a new ID without data. > Therefore, the driver must be able to handle the case where `driver_data` > is 0. Thus, update the `probe` functions to get `Option`. > > The current code cannot tell if the info does not exist or is the first > entry; however this will be achievable once the code is updated to use a > `&'static IdInfo` pointer instead of indices. > > Signed-off-by: Gary Guo <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=4
