My 40V Ryobi leaf blower came with a small charger that had no way to mount it on the wall. There appear to be several types of 40V Ryobi chargers out there, so this one is for the OP404VNM model that I have. Other versions are either for a different model, or require you to disassemble the charger to use the mount.
This design is two-pieces that clamp together with four M3 x 10 screws and two wood screws to mount to the wall. No modification is needed to the charger. It can be removed from the bracket at any time by removing the four screws. Note that to keep the bracket small, I chose to put the wall mount screws behind the charger, so you need to mount the back plate to the wall before installing the charger in the bracket. There is also a groove in the back plate to route the charging cable.